Filters the sitemap entry for the sitemap index.
Parameters
$sitemap_entryarray- Sitemap entry for the post.
$object_typestring- Object empty name.
$object_subtypestring- Object subtype name.
Empty string if the object type does not support subtypes. $pageint- Page number of results.
Source
$sitemap_entry = apply_filters( 'wp_sitemaps_index_entry', $sitemap_entry, $this->object_type, $type['name'], $page );
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
To alter the home URL for the sitemap index in WP Multisites,