wp_sitemaps_taxonomies_entry хук-фильтр . WP 5.5.0
Filters the sitemap entry for an individual term.
Использование
add_filter( 'wp_sitemaps_taxonomies_entry', 'filter_function_name_7929', 10, 3 ); function filter_function_name_7929( $sitemap_entry, $term, $taxonomy ){ // filter... return $sitemap_entry; }
- $sitemap_entry(массив)
- Sitemap entry for the term.
- $term(WP_Term)
- Term object.
- $taxonomy(строка)
- Taxonomy name.
Список изменений
С версии 5.5.0 | Введена. |
Где вызывается хук
wp_sitemaps_taxonomies_entry
wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php 121
$sitemap_entry = apply_filters( 'wp_sitemaps_taxonomies_entry', $sitemap_entry, $term, $taxonomy );