wp_sitemaps_taxonomies_pre_url_list WordPress Filter Hook

The wp_sitemaps_taxonomies_pre_url_list hook is used to modify the list of taxonomies before the sitemap is generated. This can be useful for adding or removing taxonomies from the sitemap.

apply_filters( 'wp_sitemaps_taxonomies_pre_url_list', array[]|null $url_list, string $taxonomy, int $page_num ) #

Filters the taxonomies URL list before it is generated.


Description

Returning a non-null value will effectively short-circuit the generation, returning that value instead.


Top ↑

Parameters

$url_list

(array[]|null)The URL list. Default null.

$taxonomy

(string)Taxonomy name.

$page_num

(int)Page of results.


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.