WordPress at a glance
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_4609', 10, 4 );
function filter_function_name_4609( $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.

Список изменений

С версии 5.5.0 Введена.

Где вызывается хук

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 );

Где используется хук в ядре WP

Использование не найдено.