site_status_test_php_modules

过滤钩子
apply_filters( 'site_status_test_php_modules', $modules )
参数
  • (array) $modules { An associative array of modules to test for. @type array ...$0 { An associative array of module properties used during testing. One of either `$function` or `$extension` must be provided, or they will fail by default. @type string $function Optional. A function name to test for the existence of. @type string $extension Optional. An extension to check if is loaded in PHP. @type string $constant Optional. A constant name to check for to verify an extension exists. @type string $class Optional. A class name to check for to verify an extension exists. @type bool $required Is this a required feature or not. @type string $fallback_for Optional. The module this module replaces as a fallback. } }
    Required:
定义位置
相关勾子
site_status_testssite_status_test_resultwp_sitemaps_post_typessite_search_columnssite_status_persistent_object_cache_thresholds
相关方法
wp_sitemaps_get_max_urlscreate_initial_rest_routesis_post_status_viewablestr_starts_with_delete_attachment_theme_mod
引入
5.3.0
弃用
-

site_status_test_php_modules: 这是一个过滤钩,允许你修改网站健康工具所需的PHP模块列表。网站健康工具提供有关网站及其环境健康的信息。

过滤表示要测试的所有模块的数组。

$modules = apply_filters( 'site_status_test_php_modules', $modules );

常见问题

FAQs
查看更多 >