WordPress at Your Fingertips
function is not described

WP_Sitemaps_Registry::get_providers() public WP 5.5.0

Returns all registered sitemap providers.

{} It's a 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.

Code of WP_Sitemaps_Registry::get_providers() WP 5.7.2

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