wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_update_term_parent › WordPress Filter Hooks

Since3.1.0
Deprecatedn/a
apply_filters( 'wp_update_term_parent', $args['parent'], $term_id, $taxonomy, $parsed_args, $args )
Parameters: (5)
  • (int) $parent_term 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 Arguments passed to wp_update_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 = (int) apply_filters( 'wp_update_term_parent', $args['parent'], $term_id, $taxonomy, $parsed_args, $args );