On this page
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_entryarray-
Sitemap entry for the post.
$postWP_Post-
Post object.
$post_typestring-
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 );
Related
Used By
| Used By | Description |
|---|---|
| WP_Sitemaps_Posts::get_url_list() wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php | Gets a URL list for a post type sitemap. |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_posts_entry