Warning: This function has been deprecated. Use taxonomy_exists() instead.

is_taxonomy() WordPress Function

The is_taxonomy() function is used to check whether the given taxonomy exists.

is_taxonomy( string $taxonomy ) #

Checks that the taxonomy name exists.


Description

Top ↑

See also


Top ↑

Parameters

$taxonomy

(string)(Required)Name of taxonomy object


Top ↑

Return

(bool) Whether the taxonomy exists.


Top ↑

Source

File: wp-includes/deprecated.php

function is_taxonomy( $taxonomy ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'taxonomy_exists()' );
	return taxonomy_exists( $taxonomy );
}


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Use taxonomy_exists()
2.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More