WP_Sitemaps::__construct()
- Since
- 5.5.0
- Source
wp-includes/sitemaps/class-wp-sitemaps.php:51
WP_Sitemaps constructor.
Uses · 3
- WP_Sitemaps_Registry::__construct()
- WP_Sitemaps_Renderer::__construct()WP_Sitemaps_Renderer constructor.
- WP_Sitemaps_Index::__construct()WP_Sitemaps_Index constructor.
Used by · 1
- wp_sitemaps_get_server()Retrieves the current Sitemaps server instance.
Source
public function __construct() { $this->registry = new WP_Sitemaps_Registry(); $this->renderer = new WP_Sitemaps_Renderer(); $this->index = new WP_Sitemaps_Index( $this->registry ); }History
Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, from
src/wp-includes/sitemaps/class-wp-sitemaps.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.