function wp_register_sitemap_provider( $name, WP_Sitemaps_Provider
$provider ) { $sitemaps =
wp_sitemaps_get_server();
return $sitemaps->registry->
add_provider( $name,
$provider );
}/**
* Gets the maximum number of URLs for a sitemap.
*
* @since 5.5.0
*
* @param string $object_type Object type for sitemap to be filtered (e.g. 'post', 'term', 'user').
* @return int The maximum number of URLs.
*/
function wp_sitemaps_get_max_urls( $object_type ) {