WP_Sitemaps_Registry::get_providers()publicWP 5.5.0

Returns all registered sitemap providers.

Method of the class: WP_Sitemaps_Registry{}

No Hooks.

Return

WP_Sitemaps_Provider[]. Array of sitemap providers.

Usage

$WP_Sitemaps_Registry = new WP_Sitemaps_Registry();
$WP_Sitemaps_Registry->get_providers();

Changelog

Since 5.5.0 Introduced.

WP_Sitemaps_Registry::get_providers() code WP 6.5.3

public function get_providers() {
	return $this->providers;
}