WP HOOKS
filtrod 5.7.0

update_post_term_count_statuses

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

Opis — z kodu źródłowego

Filters the post statuses for updating the term count.

Parametry

ParametrTypOpis
$post_statusesstring[]List of post statuses to include in the count. Default is 'publish'.
$taxonomy\WP_TaxonomyCurrent taxonomy object.

Wywołanie

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

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

Popularne w tej kategorii