Function: is_taxonomy_hierarchical

is_taxonomy_hierarchical( string $taxonomy )

Determines whether the taxonomy object is hierarchical.

Shortcut: ith

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

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.


Name Type(s) Default Value Description
$taxonomy string

Name of taxonomy object.



Whether the taxonomy is hierarchical.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.