On this page
apply_filters( 'wp_sitemaps_max_urls', int $max_urls, string $object_type )
Filters the maximum number of URLs displayed on a sitemap.
Parameters
$max_urlsint-
The maximum number of URLs included in a sitemap. Default 2000.
$object_typestring-
Object type for sitemap to be filtered (e.g.
'post','term','user').
Source
File: wp-includes/sitemaps.php. View all references
return apply_filters( 'wp_sitemaps_max_urls', 2000, $object_type );
Related
Used By
| Used By | Description |
|---|---|
| wp_sitemaps_get_max_urls() wp-includes/sitemaps.php | Gets the maximum number of URLs for a sitemap. |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_max_urls