WP_Sitemaps_Index::__construct()publicWP 5.5.0

WP_Sitemaps_Index constructor.

Method of the class: WP_Sitemaps_Index{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Sitemaps_Index = new WP_Sitemaps_Index();
$WP_Sitemaps_Index->__construct( $registry );
$registry(WP_Sitemaps_Registry) (required)
Sitemap provider registry.

Changelog

Since 5.5.0 Introduced.

WP_Sitemaps_Index::__construct() code WP 6.1.1

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