filtrod 5.2.0
site_status_test_php_modules
Opis — z kodu źródłowego
Filters the array representing all the modules we wish to test for.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$modules | array | { An associative array of modules to test for. @type array ...$0 { An associative array of module properties used during testing. One of either <code>$function</code> or <code>$extension</code> must be provided, or they will fail by default. @type string $function Optional. A function name to test for the existence of. @type string $extension Optional. An extension to check if is loaded in PHP. @type string $constant Optional. A constant name to check for to verify an extension exists. @type string $class Optional. A class name to check for to verify an extension exists. @type bool $required Is this a required feature or not. @type string $fallback_for Optional. The module this module replaces as a fallback. } } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'site_status_test_php_modules', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'site_status_test_php_modules', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii