is_taxonomy_hierarchical


is_taxonomy_hierarchical ( $taxonomy )

Parameters:
  • (string) $taxonomy Name of taxonomy object.
Returns:
  • (bool) Whether the taxonomy is hierarchical.
Defined at:

Description

Determines whether the taxonomy object is hierarchical.

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 {@link https://developer.wordpress.org/themes/basics/conditional-tags/ Conditional Tags} article in the Theme Developer Handbook.

Related Functions

is_taxonomy_viewable, is_post_type_hierarchical, is_taxonomy, _wp_ajax_add_hierarchical_term, taxonomy_exists

Top Google Results

User discussions

wpseek mobile