wp_get_sitemap_providers(): WP_Sitemaps_Provider[]

In this article

Gets an array of sitemap providers.

Return

WP_Sitemaps_Provider[] Array of sitemap providers.

Source

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

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

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.