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.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
6.0.0Added $term argument containing the term object.
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.