Used By
Used By | Description |
---|---|
wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php: WP_Sitemaps_Posts::get_max_num_pages() | Gets the max number of pages available for the object type. |
Filters the max number of pages before it is generated.
Passing a non-null value will short-circuit the generation, returning that value instead.
(int|null) The maximum number of pages. Default null.
(string) Post type name.
File: wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_posts_pre_max_num_pages