is_taxonomy_hierarchical

SummerySummery

Determines whether the taxonomy object is hierarchical.

Syntax

is_taxonomy_hierarchical( string $taxonomy )

DescriptionDescription

Checks to make sure that the taxonomy is an object first. Then Gets the object, and finally returns the hierarchical value in the object.

A false return value might also mean that the taxonomy does not exist.

For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.

ParametersParameters

$taxonomy

(string) (Required) Name of taxonomy object.

ReturnReturn

(bool) Whether the taxonomy is hierarchical.

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
2.3.0 Introduced.
Scroll to Top