wp_get_sitemap_providers()

Gets an array of sitemap providers.

Return

(WP_Sitemaps_Provider[]) Array of sitemap providers.

Source

File: wp-includes/sitemaps.php

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

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

Changelog

Version Description
5.5.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_get_sitemap_providers