Filters the max number of pages for a taxonomy sitemap before it is generated.
Passing a non-null value will short-circuit the generation, returning that value instead.
$max_num_pagesint|null
$taxonomystring
$max_num_pages = apply_filters( 'wp_sitemaps_taxonomies_pre_max_num_pages', null, $taxonomy );
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_taxonomies_pre_max_num_pages