filtrod 2.7.0
get_categories_taxonomy
Opis — z kodu źródłowego
Filters the taxonomy used to retrieve terms when calling get_categories().
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$taxonomy | string | Taxonomy to retrieve terms from. |
$args | array | An array of arguments. See get_terms(). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_categories_taxonomy', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_categories_taxonomy', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii