cat_is_ancestor_of() for custom taxonomies

Use term_is_ancestor_of(). That is the function cat_is_ancestor_of() is calling:

term_is_ancestor_of( $parent, $child, 'taxonomy_name' );

Leave a Comment