Summery Summery
Retrieves the taxonomy object of $taxonomy.
Syntax Syntax
Description Description
The get_taxonomy function will first check that the parameter string given is a taxonomy object and if it is, it will return it.
Parameters Parameters
- $taxonomy
-
(Required) Name of taxonomy object to return.
Return Return
(WP_Taxonomy|false) The Taxonomy Object or false if $taxonomy doesn't exist.
Source Source
File: wp-includes/taxonomy.php
function get_taxonomy( $taxonomy ) {
global $wp_taxonomies;
if ( ! taxonomy_exists( $taxonomy ) ) {
return false;
}
return $wp_taxonomies[ $taxonomy ];
}
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |