WordPress at Your Fingertips
filter is not described

wp_sitemaps_max_urls filter-hook . WP 5.5.0

Filters the maximum number of URLs displayed on a sitemap.

Usage

add_filter( 'wp_sitemaps_max_urls', 'filter_function_name_1133', 10, 2 );
function filter_function_name_1133( $max_urls, $object_type ){
	// filter...

	return $max_urls;
}
$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').

Changelog

Since 5.5.0 Introduced.

Where the hook is called

wp_sitemaps_get_max_urls()
wp_sitemaps_max_urls
wp-includes/sitemaps.php 90
return apply_filters( 'wp_sitemaps_max_urls', 2000, $object_type );

Where in WP core the hook is used WordPress

Usage not found.