apply_filters( 'wp_sitemaps_post_types', WP_Post_Type[] $post_types )

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


Parameters

$post_types

Array of registered post type objects keyed by their name.


Source

File: wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php

View on GitHub



Changelog

Changelog
Version Description
5.5.0 Introduced.