wp_sitemaps_users_pre_max_num_pages WordPress Filter Hook
The wp_sitemaps_users_pre_max_num_pages hook is used to set the maximum number of pages that will be generated for user sitemaps. This can be useful for limiting the amount of data that is generated and stored for your sitemaps.
apply_filters( 'wp_sitemaps_users_pre_max_num_pages', int|null $max_num_pages ) #
Filters the max number of pages for a user sitemap before it is generated.
Description
Returning a non-null value will effectively short-circuit the generation, returning that value instead.
Parameters
- $max_num_pages
(int|null)The maximum number of pages. Default null.
Source
File: wp-includes/sitemaps/providers/class-wp-sitemaps-users.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |