W3cubDocs

/WordPress

WP_Sitemaps::__construct()

WP_Sitemaps constructor.

Source

public function __construct() {
	$this->registry = new WP_Sitemaps_Registry();
	$this->renderer = new WP_Sitemaps_Renderer();
	$this->index    = new WP_Sitemaps_Index( $this->registry );
}

Changelog

Version Description
5.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_sitemaps/__construct