wp_check_term_hierarchy_for_loops ( $parent, $term_id, $taxonomy )
- (int) parent `term_id` of the parent for the term we're checking.
- (int) term_id The term we're checking.
- (string) taxonomy The taxonomy of the term we're checking.
- (int) The new parent for the term.
- Introduced in WordPress: 3.1.0
- Deprecated in WordPress: —
Checks the given subset of the term hierarchy for hierarchy loops.Prevents loops from forming and breaks those that it finds.
Attached to the Array filter.