filtrod 6.1.0
site_status_available_object_cache_services
Opis — z kodu źródłowego
Filters the persistent object cache services available to the user.
This can be useful to hide or add services not included in the defaults.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$services | string[] | The list of available persistent object cache services. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'site_status_available_object_cache_services', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'site_status_available_object_cache_services', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii