_get_term_hierarchy


_get_term_hierarchy ( $taxonomy )

Parameters:
  • (string) $taxonomy Taxonomy name.
Returns:
  • (array) Empty if $taxonomy isn't hierarchical or returns children as Term IDs.
Defined at:

Description

Retrieves children of taxonomy as Term IDs.

Related Functions

get_page_hierarchy, get_term_meta, get_term_by, get_term_field, wp_check_term_hierarchy_for_loops

Top Google Results

User discussions

wpseek mobile