WordPress at Your Fingertips
function is not described

WP_Sitemaps_Index::__construct() public WP 5.5.0

WP_Sitemaps_Index constructor.

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

Code of WP_Sitemaps_Index::__construct() WP 5.8

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