WP HOOKS
akcjaod 2.5.0

clean_term_cache

Args 3Plik wp-includes/taxonomy.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires once after each taxonomy's term cache has been cleaned.

Parametry

ParametrTypOpis
$idsarrayAn array of term IDs.
$taxonomystringTaxonomy slug.
$clean_taxonomyboolWhether or not to clean taxonomy-wide caches

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'clean_term_cache', 'twoja_funkcja', 10, 3 );

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

Popularne w tej kategorii