filtrod 5.5.0
wp_sitemaps_taxonomies_entry
Opis — z kodu źródłowego
Filters the sitemap entry for an individual term.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$sitemap_entry | array | Sitemap entry for the term. |
$term_id | int | Term ID. |
$taxonomy | string | Taxonomy name. |
$term | \WP_Term | Term object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_sitemaps_taxonomies_entry', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_sitemaps_taxonomies_entry', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii