filtrod 2.8.0
get_terms_orderby
Opis — z kodu źródłowego
Filters the ORDERBY clause of the terms query.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$orderby | string | <code>ORDERBY</code> clause of the terms query. |
$args | array | An array of term query arguments. |
$taxonomies | string[] | An array of taxonomy names. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_terms_orderby', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_terms_orderby', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii