On this page
apply_filters( 'wp_sitemaps_index_entry', array $sitemap_entry, string $object_type, string $object_subtype, int $page )
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
File: wp-includes/sitemaps/class-wp-sitemaps-provider.php. View all references
$sitemap_entry = apply_filters( 'wp_sitemaps_index_entry', $sitemap_entry, $this->object_type, $type['name'], $page );
Related
Used By
| Used By | Description |
|---|---|
| WP_Sitemaps_Provider::get_sitemap_entries() wp-includes/sitemaps/class-wp-sitemaps-provider.php | Lists sitemap pages exposed by this provider. |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_index_entry