wp-includes/sitemaps.php:81Gets the maximum number of URLs for a sitemap.
$object_typestringintOne hook fires while wp_sitemaps_get_max_urls() runs, in this order:
Filters the maximum number of URLs displayed on a sitemap.
function wp_sitemaps_get_max_urls( $object_type ) { /** * Filters the maximum number of URLs displayed on a sitemap. * * @since 5.5.0 * * @param int $max_urls The maximum number of URLs included in a sitemap. Default 2000. * @param string $object_type Object type for sitemap to be filtered (e.g. 'post', 'term', 'user'). */ return apply_filters( 'wp_sitemaps_max_urls', 2000, $object_type );}Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/sitemaps.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.