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.


Top ↑

Source

File: wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.