W3cubDocs

/WordPress

apply_filters( 'wp_sitemaps_max_urls', int $max_urls, string $object_type )

Filters the maximum number of URLs displayed on a sitemap.

Parameters

$max_urls

(int) The maximum number of URLs included in a sitemap. Default 2000.

$object_type

(string) Object type for sitemap to be filtered (e.g. 'post', 'term', 'user').

Source

File: wp-includes/sitemaps.php

View on Trac

Changelog

Version Description
5.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_max_urls