A WordPress-centric search engine for devs and theme authors



wp_update_term_parent ›

Since3.1.0
Deprecatedn/a
apply_filters( 'wp_update_term_parent', $args['parent'], $term_id, $taxonomy, $parsed_args, $args )
Parameters: (5)
  • (int) $parent ID of the parent term.
    Required: Yes
  • (int) $term_id Term ID.
    Required: Yes
  • (string) $taxonomy Taxonomy slug.
    Required: Yes
  • (array) $parsed_args An array of potentially altered update arguments for the given term.
    Required: Yes
  • (array) $args An array of update arguments for the given term.
    Required: Yes
Defined at:
Codex:

Filters the term parent.

Hook to this filter to see if it will cause a hierarchy loop.





Source

$parent = apply_filters( 'wp_update_term_parent', $args['parent'], $term_id, $taxonomy, $parsed_args, $args );