function get_taxonomy( $taxonomy ) {}

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.


  • string $taxonomy: Name of taxonomy object to return

Return values

returns:The Taxonomy Object or false if $taxonomy doesn’t exist

Source code

function get_taxonomy( $taxonomy ) {

	global $wp_taxonomies;

	if ( ! taxonomy_exists( $taxonomy ) )

		return false;

	return $wp_taxonomies[$taxonomy];



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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: