WordPress at Your Fingertips
filter is not described

wp_sitemaps_index_entry filter-hook . WP 5.5.0

Filters the sitemap entry for the sitemap index.

Usage

add_filter( 'wp_sitemaps_index_entry', 'filter_function_name_6907', 10, 4 );
function filter_function_name_6907( $sitemap_entry, $object_type, $object_subtype, $page ){
	// filter...

	return $sitemap_entry;
}
$sitemap_entry(array)
Sitemap entry for the post.
$object_type(string)
Object empty name.
$object_subtype(string)
Object subtype name. Empty string if the object type does not support subtypes.
$page(int)
Page number of results.

Changelog

Since 5.5.0 Introduced.

Where the hook is called

WP_Sitemaps_Provider::get_sitemap_entries()
wp_sitemaps_index_entry
wp-includes/sitemaps/class-wp-sitemaps-provider.php 125
$sitemap_entry = apply_filters( 'wp_sitemaps_index_entry', $sitemap_entry, $this->object_type, $type['name'], $page );

Where in WP core the hook is used WordPress

Usage not found.