Filters the array representing all the modules we wish to test for.
Parameters
$modulesarray
{ 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. } }
...$0array
An associative array of module properties used during testing. One of either $function or $extension must be provided, or they will fail by default.
$functionstring
Optional. A function name to test for the existence of.
$extensionstring
Optional. An extension to check if is loaded in PHP.
$constantstring
Optional. A constant name to check for to verify an extension exists.
$classstring
Optional. A class name to check for to verify an extension exists.
$requiredbool
Is this a required feature or not.
$fallback_forstring
Optional. The module this module replaces as a fallback.
1020* @type string$class Optional.Aclassname to check for to verify an extension exists.1021* @type bool$required Is this a required feature or not.1022* @type string$fallback_for Optional. The module this module replaces as a fallback.1023*}1024*}1025*/1026$modules=apply_filters('site_status_test_php_modules',$modules);10271028$failures=array();10291030foreach($modulesas$library=>$module){1031$extension_name=(isset($module['extension'])?$module['extension']:null);1032$function_name=(isset($module['function'])?$module['function']:null);
History
Introduced in 5.2.0. Unchanged from 6.7.7 through 7.1.0.