apply_filters( 'wp_sitemaps_taxonomies_entry', array $sitemap_entry, int $term_id, string $taxonomy, WP_Term $term )
- Since
- 5.5.0, 6.0.0
Filters the sitemap entry for an individual term.
Parameters
$sitemap_entryarray- Sitemap entry for the term.
$term_idint- Term ID.
$taxonomystring- Taxonomy name.
$termWP_Term- Term object.
Fired at · 1
wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php:129WP_Sitemaps_Taxonomies::get_url_list()
Source
* * @param array $sitemap_entry Sitemap entry for the term. * @param int $term_id Term ID. * @param string $taxonomy Taxonomy name. * @param WP_Term $term Term object. */ $sitemap_entry = apply_filters( 'wp_sitemaps_taxonomies_entry', $sitemap_entry, $term->term_id, $taxonomy, $term ); $url_list[] = $sitemap_entry; } } return $url_list; }History
Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
6.0.0
Added
$term argument containing the term object.from the docblock5.5.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.