wp_get_sitemap_providers() WordPress Function

The wp_get_sitemap_providers() function is used to get a list of available sitemap providers. This function is used internally by the WordPress sitemap feature.

wp_get_sitemap_providers() #

Gets an array of sitemap providers.


Return

(WP_Sitemaps_Provider[]) Array of sitemap providers.


Top ↑

Source

File: wp-includes/sitemaps.php

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

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


Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.