taxonomy_exists( string $taxonomy )

Checks that the taxonomy name exists.


Description

Formerly is_taxonomy(), introduced in WP-2.3.0.


Parameters

$taxonomy

(string) (Required) Name of taxonomy object.


Return

(bool) Whether the taxonomy exists.


Source

File: wp-includes/taxonomy.php

function taxonomy_exists( $taxonomy ) {
	global $wp_taxonomies;

	return isset( $wp_taxonomies[$taxonomy] );
}


Changelog

Changelog
Version Description
WP-3.0.0 Introduced.