WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/is taxonomy hierarchical

Description

This Conditional Tag checks if the taxonomy object is hierarchical. This is a boolean function uses a global, meaning it returns either TRUE or FALSE (A false return value might also mean that the taxonomy does not exist).

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

Usage

<?php is_taxonomy_hierarchical$taxonomy ?>

Parameters

$taxonomy
(string) (required) Name of taxonomy object
Default: None

Return Values

(boolean) 
Whether the taxonomy is hierarchical

Examples

Notes

Change Log

Since: 2.3.0

Source File

is_taxonomy_hierarchical() is located in wp-includes/taxonomy.php.

Related

See also index of Function Reference and index of Template Tags.