Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_update_term_parent ›

Da3.1.0
Deprecaton/a
apply_filters( 'wp_update_term_parent', $args['parent'], $term_id, $taxonomy, $parsed_args, $args )
Parametri: (5)
  • (int) $parent ID of the parent term.
    Richiesto:
  • (int) $term_id Term ID.
    Richiesto:
  • (string) $taxonomy Taxonomy slug.
    Richiesto:
  • (array) $parsed_args An array of potentially altered update arguments for the given term.
    Richiesto:
  • (array) $args An array of update arguments for the given term.
    Richiesto:
Definito a:
Codex:

Filters the term parent.

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





Sorgenti

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