site_status_test_php_modules WordPress Filter Hook

This hook is used to test whether or not the site's PHP modules are working correctly. If the site's PHP modules are not working correctly, this hook will display an error message.

apply_filters( 'site_status_test_php_modules', array $modules ) #

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


Parameters

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


Top ↑

Source

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

View on Trac



Top ↑

Changelog

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.