Core Function
View Source on Trac ↗ wp_check_term_hierarchy_for_loops()
wp_check_term_hierarchy_for_loops( mixed $parent_term, mixed $term_id, mixed $taxonomy ) Checks the given subset of the term hierarchy for hierarchy loops.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $parent_term int | `term_id` of the parent for the term we're checking. Required |
| $term_id int | The term we're checking. Required |
| $taxonomy string | The taxonomy of the term we're checking. Required |
Return Value
(int)
The new parent for the term.
Function Information
Since Version
3.1.0
Source File
wp-includes/taxonomy.php
Advertisement