WP_Sitemaps::__construct() WordPress Method
The WP_Sitemaps::__construct() method initializes a new sitemaps object.
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 );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |