WP_Sitemaps_Index::__construct()
WP_Sitemaps_Index constructor.
Method of the class: WP_Sitemaps_Index{}
No Hooks.
Return
null
. Nothing (null).
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() WP Sitemaps Index:: construct code WP 6.6.2
public function __construct( WP_Sitemaps_Registry $registry ) { $this->registry = $registry; }