хук-фильтр since 5.2.0

site_status_test_php_modules

Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.

Сигнатура

apply_filters( 'site_status_test_php_modules', array $modules )

Описание

Фильтрует массив, представляющий все модули, наличие которых мы хотим проверить.

Фильтруемое значение

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 stringOptional. A function name to test for the existence of.
    • extension stringOptional. An extension to check if is loaded in PHP.
    • constant stringOptional. A constant name to check for to verify an extension exists.
    • class stringOptional. A class name to check for to verify an extension exists.
    • required boolIs this a required feature or not.
    • fallback_for stringOptional. The module this module replaces as a fallback.
    Source
    $modules = apply_filters( 'site_status_test_php_modules', $modules );
    

    View all references View on Trac View on GitHub

    Related
    Used byDescription
    WP_Site_Health::get_test_php_extensions()wp-admin/includes/class-wp-site-health.php

    Tests if required PHP modules are installed on the host.

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

Параметры

$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 stringOptional. A function name to test for the existence of.
    • extension stringOptional. An extension to check if is loaded in PHP.
    • constant stringOptional. A constant name to check for to verify an extension exists.
    • class stringOptional. A class name to check for to verify an extension exists.
    • required boolIs this a required feature or not.
    • fallback_for stringOptional. The module this module replaces as a fallback.
    Source
    $modules = apply_filters( 'site_status_test_php_modules', $modules );
    

    View all references View on Trac View on GitHub

    Related
    Used byDescription
    WP_Site_Health::get_test_php_extensions()wp-admin/includes/class-wp-site-health.php

    Tests if required PHP modules are installed on the host.

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

Исходный код

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

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

История изменений

ВерсияОписание
5.3.0 The $constant and $class parameters were added.
5.2.0 Introduced.

Что будем искать? Например,Продвижение

Этот сайт использует куки-файлы. Оставаясь на сайте, Вы соглашаетесь на их использование. Для получения дополнительной информации, пожалуйста, ознакомьтесь с политикой в отношении персональных данных.