apply_filters( ‘wp_sitemaps_post_types’, WP_Post_Type[] $post_types )

In this article

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

Parameters

$post_typesWP_Post_Type[]
Array of registered post type objects keyed by their name.

Source

return apply_filters( 'wp_sitemaps_post_types', $post_types );

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.