apply_filters( 'site_status_test_php_modules', array $modules )

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


Parameters

$modules

An associative array of modules to test for.<br>

  • '...$0'
    (array) An associative array of module properties used during testing.<br> One of either $function or $extension must be provided, or they will fail by default.<br>
    • 'function'
      (string) Optional. A function name to test for the existence of.<br>
    • 'extension'
      (string) Optional. An extension to check if is loaded in PHP.<br>
    • 'constant'
      (string) Optional. A constant name to check for to verify an extension exists.<br>
    • 'class'
      (string) Optional. A class name to check for to verify an extension exists.<br>
    • 'required'
      (bool) Is this a required feature or not.<br>
    • 'fallback_for'
      (string) Optional. The module this module replaces as a fallback.<br>


Source

File: wp-admin/includes/class-wp-site-health.php

View on GitHub


Changelog

Changelog
Version Description
5.3.0 The $constant and $class parameters were added.
5.2.0 Introduced.