filtrod 1.2.0
list_cats
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
| Parametr | Typ | Opis |
|---|---|---|
$element | string | Category name. |
$category | \WP_Term | null | The 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
}
// 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