wp_sitemaps_taxonomies filter-hook . WP 5.5.0
Filters the list of taxonomy object subtypes available within the sitemap.
Usage
add_filter( 'wp_sitemaps_taxonomies', 'filter_function_name_7686' ); function filter_function_name_7686( $taxonomies ){ // filter... return $taxonomies; }
- $taxonomies(WP_Taxonomy[])
- Array of registered taxonomy objects keyed by their name.
Changelog
Since 5.5.0 | Introduced. |
Where the hook is called
wp_sitemaps_taxonomies
wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php 47
return apply_filters( 'wp_sitemaps_taxonomies', $taxonomies );