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.
1055* @type string$class Optional.Aclassname to check for to verify an extension exists.1056* @type bool$required Is this a required feature or not.1057* @type string$fallback_for Optional. The module this module replaces as a fallback.1058*}1059*}1060*/1061$modules=apply_filters('site_status_test_php_modules',$modules);10621063$failures=array();10641065foreach($modulesas$library=>$module){1066$extension_name=$module['extension']??null;1067$function_name=$module['function']??null;
History
Introduced in 5.2.0. Unchanged from 6.7.7 through 7.1.0.