WP_Sitemaps_Index::__construct( WP_Sitemaps_Registry $registry )

WP_Sitemaps_Index constructor.

Parameters

$registry

(WP_Sitemaps_Registry) (Required) Sitemap provider registry.

Source

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

public function __construct( WP_Sitemaps_Registry $registry ) {
		$this->registry = $registry;
	}

Changelog

Version Description
5.5.0 Introduced.

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