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.
Parameters
- $url_list
(array[]|null)The URL list. Default null.
- $taxonomy
(string)Taxonomy name.
- $page_num
(int)Page of results.
Source
File: wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |