WP HOOKS
filtrod 2.3.0

list_terms_exclusions

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

Opis — z kodu źródłowego

Filters the terms to exclude from the terms query.

Parametry

ParametrTypOpis
$exclusionsstring<code>NOT IN</code> clause of the terms query.
$argsarrayAn array of terms query arguments.
$taxonomiesstring[]An array of taxonomy names.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'list_terms_exclusions', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii