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