site_status_test_php_modules
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'site_status_test_php_modules', array $modules )
Описание
Фильтрует массив, представляющий все модули, наличие которых мы хотим проверить.
Фильтруемое значение
...$0array An associative array of module properties used during testing.
One of either$functionor$extensionmust be provided, or they will fail by default.functionstringOptional. A function name to test for the existence of.extensionstringOptional. An extension to check if is loaded in PHP.constantstringOptional. A constant name to check for to verify an extension exists.classstringOptional. A class name to check for to verify an extension exists.requiredboolIs this a required feature or not.fallback_forstringOptional. The module this module replaces as a fallback.
$modules = apply_filters( 'site_status_test_php_modules', $modules );View all references View on Trac View on GitHub
Related
ChangelogUsed by Description WP_Site_Health::get_test_php_extensions() wp-admin/includes/class-wp-site-health.phpTests if required PHP modules are installed on the host.
Version Description 5.3.0 The $constantand$classparameters were added.5.2.0 Introduced.
Параметры
$modules
array
обязательный
...$0array An associative array of module properties used during testing.
One of either$functionor$extensionmust be provided, or they will fail by default.functionstringOptional. A function name to test for the existence of.extensionstringOptional. An extension to check if is loaded in PHP.constantstringOptional. A constant name to check for to verify an extension exists.classstringOptional. A class name to check for to verify an extension exists.requiredboolIs this a required feature or not.fallback_forstringOptional. The module this module replaces as a fallback.
$modules = apply_filters( 'site_status_test_php_modules', $modules );View all references View on Trac View on GitHub
Related
ChangelogUsed by Description WP_Site_Health::get_test_php_extensions() wp-admin/includes/class-wp-site-health.phpTests if required PHP modules are installed on the host.
Version Description 5.3.0 The $constantand$classparameters were added.5.2.0 Introduced.
Исходный код
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. |

