Filters the array representing all the modules we wish to test for.
Parameters
$modules
array- An associative array of modules to test for.
...$0
arrayAn associative array of module properties used during testing.
One of either$function
or$extension
must be provided, or they will fail by default.function
stringOptional. A function name to test for the existence of.extension
stringOptional. An extension to check if is loaded in PHP.constant
stringOptional. A constant name to check for to verify an extension exists.class
stringOptional. A class name to check for to verify an extension exists.required
boolIs this a required feature or not.fallback_for
stringOptional. The module this module replaces as a fallback.
Source
$modules = apply_filters( 'site_status_test_php_modules', $modules );
Changelog
User Contributed Notes
You must log in before being able to contribute a note or feedback.