WordPress at a glance
function is not described

WP_Sitemaps_Taxonomies::get_object_subtypes() public WP 5.5.0

Returns all public, registered taxonomies.

{} It's a method of the class: WP_Sitemaps_Taxonomies{}

Hooks from the method
Return

WP_Taxonomy[]. Array of registered taxonomy objects keyed by their name.

Usage

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

Changelog

Since 5.5.0 Introduced.

Code of WP_Sitemaps_Taxonomies::get_object_subtypes() WP 5.5.3

<?php
public function get_object_subtypes() {
	$taxonomies = get_taxonomies( array( 'public' => true ), 'objects' );

	$taxonomies = array_filter( $taxonomies, 'is_taxonomy_viewable' );

	/**
	 * Filter the list of taxonomy object subtypes available within the sitemap.
	 *
	 * @since 5.5.0
	 *
	 * @param WP_Taxonomy[] $taxonomies Array of registered taxonomy objects keyed by their name.
	 */
	return apply_filters( 'wp_sitemaps_taxonomies', $taxonomies );
}