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.
1044* @type string$class Optional.Aclassname to check for to verify an extension exists.1045* @type bool$required Is this a required feature or not.1046* @type string$fallback_for Optional. The module this module replaces as a fallback.1047*}1048*}1049*/1050$modules=apply_filters('site_status_test_php_modules',$modules);10511052$failures=array();10531054foreach($modulesas$library=>$module){1055$extension_name=(isset($module['extension'])?$module['extension']:null);1056$function_name=(isset($module['function'])?$module['function']:null);
History
Introduced in 5.2.0. Unchanged from 6.7.7 through 7.1.0.