WP HOOKS
filtrod 2.8.0

get_terms_orderby

Args 3Plik wp-includes/class-wp-term-query.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the ORDERBY clause of the terms query.

Parametry

ParametrTypOpis
$orderbystring<code>ORDERBY</code> clause of the terms query.
$argsarrayAn array of term query arguments.
$taxonomiesstring[]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
}

Popularne w tej kategorii