term_is_ancestor_of( ... )

Checks if a term is an ancestor of another term.

Parameters:
  • $term1 int | object
  • $term2 int | object
  • $taxonomy string