WordPress at a glance
filter is not described

site_status_test_php_modules filter-hook . WP 5.2.0

An array representing all the modules we wish to test for.

Usage

add_filter( 'site_status_test_php_modules', 'filter_function_name_6439' );
function filter_function_name_6439( $modules ){
	// filter...

	return $modules;
}
$modules(array)

An associative array of modules to test for.

  • ...$0(array)
    An associative array of module properties used during testing. One of either $function or $extension must be provided, or they will fail by default.

    • function(string)
      Optional. A function name to test for the existence of.

    • extension(string)
      Optional. An extension to check if is loaded in PHP.

    • constant(string)
      Optional. A constant name to check for to verify an extension exists.

    • class(string)
      Optional. A class name to check for to verify an extension exists.

    • required(true/false)
      Is this a required feature or not.

    • fallback_for(string)
      Optional. The module this module replaces as a fallback.

Changelog

Since 5.2.0 Introduced.
Since 5.3.0 The $constant and $class parameters were added.

Where the hook is called

WP_Site_Health::get_test_php_extensions()
site_status_test_php_modules
wp-admin/includes/class-wp-site-health.php 971
$modules = apply_filters( 'site_status_test_php_modules', $modules );

Where in WP core the hook is used WordPress

Usage not found.