WP HOOKS
filtrod 1.2.0

list_cats

Args 2Plik wp-includes/category-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters a taxonomy drop-down display element.

A variety of taxonomy drop-down display elements can be modified just prior to display via this filter. Filterable arguments include 'show_option_none', 'show_option_all', and various forms of the term name.

Parametry

ParametrTypOpis
$elementstringCategory name.
$category\WP_Term | nullThe category object, or null if there's no corresponding category.

Wywołanie

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

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

Popularne w tej kategorii