Filters the sitemap entry for an individual post.
$sitemap_entryarray$postWP_Post$post_typestringwp-includes/sitemaps/providers/class-wp-sitemaps-posts.php:164WP_Sitemaps_Posts::get_url_list() * @since 5.5.0 * * @param array $sitemap_entry Sitemap entry for the post. * @param WP_Post $post Post object. * @param string $post_type Name of the post_type. */ $sitemap_entry = apply_filters( 'wp_sitemaps_posts_entry', $sitemap_entry, $post, $post_type ); $url_list[] = $sitemap_entry; } return $url_list; }Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.