wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_sitemaps_posts_entry › WordPress Filter Hooks

Since5.5.0
Deprecatedn/a
apply_filters( 'wp_sitemaps_posts_entry', $sitemap_entry, $post, $post_type )
Parameters: (3)
  • (array) $sitemap_entry Sitemap entry for the post.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
  • (string) $post_type Name of the post_type.
    Required: Yes
Defined at:
Codex:

Filters the sitemap entry for an individual post.





Source

$sitemap_entry = apply_filters( 'wp_sitemaps_posts_entry', $sitemap_entry, $post, $post_type );