apply_filters( 'wp_sitemaps_taxonomies_pre_max_num_pages', int $max_num_pages, string $taxonomy )
Filters the max number of pages before it is generated.
Description
Passing a non-null value will short-circuit the generation, returning that value instead.
Parameters
- $max_num_pages
-
(int) The maximum number of pages. Default null.
- $taxonomy
-
(string) Taxonomy name.
Source
File: wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_taxonomies_pre_max_num_pages