Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_check_term_hierarchy_for_loops()

3 tags 1 category

wp_check_term_hierarchy_for_loops() — Checks the given subset of the term hierarchy for hierarchy loops. Prevents loops from forming and breaks those that it finds. Attached to the ‘wp_update_term_parent’ filter.

Inputs: $parent_term (int): term_id of the parent for the term we’re checking. $term_id (int): The term we’re checking. $taxonomy (string): The taxonomy of the term we’re checking.

Returns int: The new parent for the term.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…