apply_filters( 'wp_sitemaps_taxonomies_entry', array $sitemap_entry , int $term_id , string $taxonomy , WP_Term $term )
Filters the sitemap entry for an individual term.
Parameters
-
$sitemap_entry
array -
Sitemap entry for the term.
-
$term_id
int -
Term ID.
-
$taxonomy
string -
Taxonomy name.
-
$term
WP_Term -
Term object.
Source
File: wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php
.
View all references
$sitemap_entry = apply_filters( 'wp_sitemaps_taxonomies_entry', $sitemap_entry, $term->term_id, $taxonomy, $term );
Changelog
Version | Description |
---|---|
6.0.0 | Added $term argument containing the term object. |
5.5.0 | Introduced. |