get_taxonomy

SummerySummery

Retrieves the taxonomy object of $taxonomy.

Syntax

get_taxonomy( string $taxonomy )

DescriptionDescription

The get_taxonomy function will first check that the parameter string given is a taxonomy object and if it is, it will return it.

ParametersParameters

$taxonomy

(string) (Required) Name of taxonomy object to return.

ReturnReturn

(WP_Taxonomy|false) The Taxonomy Object or false if $taxonomy doesn't exist.

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
2.3.0 Introduced.
Scroll to Top