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模組列表。網站健康工具提供有關網站及其環境健康的資訊。

過濾表示要測試的所有模組的陣列。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$modules = apply_filters( 'site_status_test_php_modules', $modules );
$modules = apply_filters( 'site_status_test_php_modules', $modules );
$modules = apply_filters( 'site_status_test_php_modules', $modules );

常見問題

FAQs
檢視更多 >