W3cubDocs

/WordPress

WP_Sitemaps::__construct()

WP_Sitemaps constructor.

Source

File: wp-includes/sitemaps/class-wp-sitemaps.php

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–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_sitemaps/__construct