filtrod 2.3.0
list_terms_exclusions
Opis — z kodu źródłowego
Filters the terms to exclude from the terms query.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$exclusions | string | <code>NOT IN</code> clause of the terms query. |
$args | array | An array of terms query arguments. |
$taxonomies | string[] | 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
}
// 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