WP_Sitemaps_Index
- Since
- 5.5.0
- Source
wp-includes/sitemaps/class-wp-sitemaps-index.php:18
Class WP_Sitemaps_Index.
Description
Builds the sitemap index page that lists the links to all of the sitemaps.
Compatibility
- WordPress
- since 5.5.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Properties · 2
$registryWP_Sitemaps_Registryprotected- The main registry of supported sitemaps.
$max_sitemapsintprivate- Maximum number of sitemaps to include in an index.
Methods · 3
- __construct()WP_Sitemaps_Index constructor.
- get_sitemap_list()Gets a sitemap list for the index.
- get_index_url()Builds the URL for the sitemap index.
Changelog
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 7.1.0 tag, from
src/wp-includes/sitemaps/class-wp-sitemaps-index.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.