filtrod 4.4.0
get_terms_defaults
Opis — z kodu źródłowego
Filters the terms query default arguments.
Use {@see 'get_terms_args'} to filter the passed arguments.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$defaults | array | An array of default get_terms() arguments. |
$taxonomies | string[] | An array of taxonomy names. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_terms_defaults', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_terms_defaults', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii