wp_sitemaps_taxonomies WordPress Filter Hook
The wp_sitemaps_taxonomies hook allows a plugin to register additional taxonomies for inclusion in WordPress sitemaps. This is useful for plugins that create custom post types or taxonomies, as it allows those to be included in the sitemap.
apply_filters( 'wp_sitemaps_taxonomies', WP_Taxonomy[] $taxonomies ) #
Filters the list of taxonomy object subtypes available within the sitemap.
Parameters
- $taxonomies
(WP_Taxonomy[])Array of registered taxonomy objects keyed by their name.
Source
File: wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |