On this page
WP_Sitemaps::__construct()
WP_Sitemaps constructor.
Source
File: wp-includes/sitemaps/class-wp-sitemaps.php. View all references
public function __construct() {
$this->registry = new WP_Sitemaps_Registry();
$this->renderer = new WP_Sitemaps_Renderer();
$this->index = new WP_Sitemaps_Index( $this->registry );
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Sitemaps_Index::__construct() wp-includes/sitemaps/class-wp-sitemaps-index.php | WP_Sitemaps_Index constructor. |
| WP_Sitemaps_Renderer::__construct() wp-includes/sitemaps/class-wp-sitemaps-renderer.php | WP_Sitemaps_Renderer constructor. |
Used By
| Used By | Description |
|---|---|
| wp_sitemaps_get_server() wp-includes/sitemaps.php | Retrieves the current Sitemaps server instance. |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_sitemaps/__construct