wp_sitemaps_taxonomies_entry WordPress Filter Hook
The wp_sitemaps_taxonomies_entry hook is used to add custom taxonomies to the WordPress sitemap. This hook is used to add taxonomies that are not already registered with WordPress.
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
Changelog
Version | Description |
---|---|
6.0.0 | Added $term argument containing the term object. |
5.5.0 | Introduced. |