WP HOOKS
filtrod 3.4.0

wp_cache_themes_persistently

Args 2Plik wp-includes/theme.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether to get the cache of the registered theme directories.

Parametry

ParametrTypOpis
$cache_expirationboolWhether to get the cache of the theme directories. Default false.
$contextstringThe class or function name calling the filter.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_cache_themes_persistently', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii