On this page
apply_filters( 'site_status_test_php_modules', array $modules )
Filters the array representing all the modules we wish to test for.
Parameters
$modulesarray-
An associative array of modules to test for.
...$0arrayAn associative array of module properties used during testing.
One of either$functionor$extensionmust be provided, or they will fail by default.functionstringOptional. A function name to test for the existence of.extensionstringOptional. An extension to check if is loaded in PHP.constantstringOptional. A constant name to check for to verify an extension exists.classstringOptional. A class name to check for to verify an extension exists.requiredboolIs this a required feature or not.fallback_forstringOptional. The module this module replaces as a fallback.
Source
File:
wp-admin/includes/class-wp-site-health.php. View all references$modules = apply_filters( 'site_status_test_php_modules', $modules );Related
Used By
Used By Description WP_Site_Health::get_test_php_extensions() wp-admin/includes/class-wp-site-health.php Tests if required PHP modules are installed on the host.
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/site_status_test_php_modules