WordPress at a glance
function is not described

wp_sitemaps_get_max_urls() WP 5.5.0

Gets the maximum number of URLs for a sitemap.

Hooks from the function
Return

Int. The maximum number of URLs.

Usage

wp_sitemaps_get_max_urls( $object_type );
$object_type(string) (required)
Object type for sitemap to be filtered (e.g. 'post', 'term', 'user').

Changelog

Since 5.5.0 Introduced.

Code of wp_sitemaps_get_max_urls() WP 5.7.2

<?php
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 );
}