filtrod 5.5.0
wp_sitemaps_taxonomies_query_args
Opis — z kodu źródłowego
Filters the taxonomy terms query arguments.
Allows modification of the taxonomy query arguments before querying.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$args | array | Array of WP_Term_Query arguments. |
$taxonomy | string | Taxonomy name. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_sitemaps_taxonomies_query_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_sitemaps_taxonomies_query_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii