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.
Source
File: wp-includes/sitemaps.php
function wp_get_sitemap_providers() { $sitemaps = wp_sitemaps_get_server(); return $sitemaps->registry->get_providers(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |