W3cubDocs

/WordPress

apply_filters( ‘site_status_test_php_modules’, array $modules )

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

Parameters

$modulesarray
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 bool
      Is this a required feature or not.
    • fallback_for string
      Optional. The module this module replaces as a fallback.

    Source

    $modules = apply_filters( 'site_status_test_php_modules', $modules );
    

    Changelog

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/site_status_test_php_modules