wppaste
WordPress

WP_Sitemaps_Taxonomies::get_object_subtypes(): WP_Taxonomy[]

Since
5.5.0
Source
wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php:35
Returns all public, registered taxonomies.

Return

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

Hooks fired · 1

One hook fires while WP_Sitemaps_Taxonomies::get_object_subtypes() runs, in this order:

  1. apply_filters( wp_sitemaps_taxonomies )filterline 47 (+12 into the body)

    Filters the list of taxonomy object subtypes available within the sitemap.

Uses · 2

  • get_taxonomies()Retrieves a list of registered taxonomy names or objects.
  • apply_filters()Calls the callback functions that have been added to a filter hook.

Used by · 1

Source

	public function get_object_subtypes() {		$taxonomies = get_taxonomies( array( 'public' => true ), 'objects' ); 		$taxonomies = array_filter( $taxonomies, 'is_taxonomy_viewable' ); 		/**		 * Filters 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 );	}

History

Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.