WP HOOKS
filtrod 4.4.0

get_terms_defaults

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

Opis — z kodu źródłowego

Filters the terms query default arguments.

Use {@see 'get_terms_args'} to filter the passed arguments.

Parametry

ParametrTypOpis
$defaultsarrayAn array of default get_terms() arguments.
$taxonomiesstring[]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
}

Popularne w tej kategorii