filtrod 6.1.0
site_status_persistent_object_cache_notes
Opis — z kodu źródłowego
Filters the second paragraph of the health check's description when suggesting the use of a persistent object cache.
Hosts may want to replace the notes to recommend their preferred object caching solution. Plugin authors may want to append notes (not replace) on why object caching is recommended for their plugin.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$notes | string | The notes appended to the health check description. |
$available_services | string[] | The list of available persistent object cache services. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'site_status_persistent_object_cache_notes', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'site_status_persistent_object_cache_notes', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii