apply_filters( 'wp_sitemaps_posts_entry', array $sitemap_entry , WP_Post $post , string $post_type )
Filters the sitemap entry for an individual post.
Parameters
-
$sitemap_entry
array -
Sitemap entry for the post.
-
$post
WP_Post -
Post object.
-
$post_type
string -
Name of the post_type.
Source
File: wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
.
View all references
$sitemap_entry = apply_filters( 'wp_sitemaps_posts_entry', $sitemap_entry, $post, $post_type );
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
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,