钩子文档

site_status_autoloaded_options_action_to_perform

💡 云策文档标注

概述

site_status_autoloaded_options_action_to_perform 是一个 WordPress 过滤器钩子,用于在站点健康检查中过滤自动加载选项问题的可操作信息,例如提供外部指南链接。

关键要点

  • 这是一个过滤器钩子,允许开发者修改或添加解决自动加载选项问题的操作建议。
  • 参数 $actions 是一个字符串,表示指向问题解决方向的调用操作。
  • 钩子在 WP_Site_Health::get_test_autoloaded_options() 方法中使用,用于测试自动加载选项的数量。
  • 该钩子从 WordPress 6.6.0 版本开始引入。

📄 原文内容

Filters actionable information to tackle the problem. It can be a link to an external guide.

Parameters

$actionsstring
Call to Action to be used to point to the right direction to solve the issue.

Source

$result['actions'] = apply_filters( 'site_status_autoloaded_options_action_to_perform', $result['actions'] );

Changelog

Version Description
6.6.0 Introduced.