filtrod 6.1.0
site_status_should_suggest_persistent_object_cache
Opis — z kodu źródłowego
Filters whether to suggest use of a persistent object cache and bypass default threshold checks.
Using this filter allows to override the default logic, effectively short-circuiting the method.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$suggest | bool | null | Boolean to short-circuit, for whether to suggest using a persistent object cache. Default null. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'site_status_should_suggest_persistent_object_cache', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'site_status_should_suggest_persistent_object_cache', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii