Filters the sitemap entry for an individual post.
Parameters
$sitemap_entryarray- Sitemap entry for the post.
$postWP_Post- Post object.
$post_typestring- Name of the post_type.
Source
$sitemap_entry = apply_filters( 'wp_sitemaps_posts_entry', $sitemap_entry, $post, $post_type );
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
To add the last modifed date to your XML sitemap, Google wants the date in W3C format.
To alter the post URLs in WP Multisites,