get_taxonomy() – Retrieves the taxonomy object of $taxonomy.
You appear to be a bot. Output may be restricted
Description
Retrieves the taxonomy object of $taxonomy.
The get_taxonomy function will first check that the parameter string given is a taxonomy object and if it is, it will return it.
Usage
$WP_Taxonomy|false = get_taxonomy( $taxonomy );
Parameters
- $taxonomy
- ( string ) required – Name of taxonomy object to return.
Returns
WP_Taxonomy|false The taxonomy object or false if $taxonomy doesn't exist.
Source
File name: wordpress/wp-includes/taxonomy.php
Lines:
1 to 9 of 9
function get_taxonomy( $taxonomy ) { global $wp_taxonomies; if ( ! taxonomy_exists( $taxonomy ) ) { return false; } return $wp_taxonomies[ $taxonomy ]; }