WordPress at Your Fingertips
function is not described

wp_get_sitemap_providers() WP 5.5.0

Gets an array of sitemap providers.

No Hooks.

Return

WP_Sitemaps_Provider[]. Array of sitemap providers.

Usage

wp_get_sitemap_providers();

Changelog

Since 5.5.0 Introduced.

Code of wp_get_sitemap_providers() WP 5.8.1

function wp_get_sitemap_providers() {
	$sitemaps = wp_sitemaps_get_server();

	return $sitemaps->registry->get_providers();
}