is_taxonomy

Checks that the taxonomy name exists.

Description

is_taxonomy( (string) $taxonomy ); 

Parameters (1)

0. $taxonomy (string)
Name of taxonomy object

Usage

  1. if ( !function_exists( 'is_taxonomy' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // Name of taxonomy object 
  5. $taxonomy = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = is_taxonomy($taxonomy); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function is_taxonomy( $taxonomy ) { 
  2. _deprecated_function( __FUNCTION__, '3.0.0', 'taxonomy_exists()' ); 
  3. return taxonomy_exists( $taxonomy );