WordPress at Your Fingertips
filter is not described

wp_sitemaps_posts_entry filter-hook . WP 5.5.0

Filters the sitemap entry for an individual post.

Usage

add_filter( 'wp_sitemaps_posts_entry', 'filter_function_name_4578', 10, 3 );
function filter_function_name_4578( $sitemap_entry, $post, $post_type ){
	// filter...

	return $sitemap_entry;
}
$sitemap_entry(array)
Sitemap entry for the post.
$post(WP_Post)
Post object.
$post_type(string)
Name of the post_type.

Changelog

Since 5.5.0 Introduced.

Where the hook is called

WP_Sitemaps_Posts::get_url_list()
wp_sitemaps_posts_entry
wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php 134
$sitemap_entry = apply_filters( 'wp_sitemaps_posts_entry', $sitemap_entry, $post, $post_type );

Where in WP core the hook is used WordPress

Usage not found.