Definition:
function taxonomy_exists( $taxonomy ) {}
Checks that the taxonomy name exists.
Formerly is_taxonomy(), introduced in 2.3.0.
Parameters
- string $taxonomy: Name of taxonomy object
Return values
returns:Whether the taxonomy exists.
Source code
function taxonomy_exists( $taxonomy ) {
global $wp_taxonomies;
return isset( $wp_taxonomies[$taxonomy] );
}
2937

February 12, 2011 


No comments yet... Be the first to leave a reply!