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



wp_sitemaps_post_types › WordPress Filter Hooks

Since5.5.0
Deprecatedn/a
apply_filters( 'wp_sitemaps_post_types', $post_types )
Parameters:
  • (WP_Post_Type[]) $post_types Array of registered post type objects keyed by their name.
    Required: Yes
Defined at:
Codex:

Filters the list of post object sub types available within the sitemap.





Source

return apply_filters( 'wp_sitemaps_post_types', $post_types );