WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Sitemaps_Posts::get_object_subtypes() public WP 5.5.0

Returns the public post types, which excludes nav_items and similar types. Attachments are also excluded. This includes custom post types with public = true.

Это метод класса: WP_Sitemaps_Posts{}

Хуки из метода
Возвращает

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

Использование

$WP_Sitemaps_Posts = new WP_Sitemaps_Posts();
$WP_Sitemaps_Posts->get_object_subtypes();

Список изменений

С версии 5.5.0 Введена.

Код WP_Sitemaps_Posts::get_object_subtypes() WP 5.5.1

wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
<?php
public function get_object_subtypes() {
	$post_types = get_post_types( array( 'public' => true ), 'objects' );
	unset( $post_types['attachment'] );

	$post_types = array_filter( $post_types, 'is_post_type_viewable' );

	/**
	 * Filters the list of post object sub types available within the sitemap.
	 *
	 * @since 5.5.0
	 *
	 * @param WP_Post_Type[] $post_types Array of registered post type objects keyed by their name.
	 */
	return apply_filters( 'wp_sitemaps_post_types', $post_types );
}