WP HOOKS
filtrod 6.1.0

site_status_persistent_object_cache_notes

Args 2Plik wp-admin/includes/class-wp-site-health.phpDokumentacja WP ↗

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

ParametrTypOpis
$notesstringThe notes appended to the health check description.
$available_servicesstring[]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
}

Popularne w tej kategorii