wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_update_term_parent › WordPress过滤钩子

Since3.1.0
已弃用n/a
› apply_filters( 'wp_update_term_parent', $args['parent'], $term_id, $taxonomy, $parsed_args, $args )
参数: (5)
  • () parent_term ID of the parent term.
    Required: Yes
  • () term_id Term ID.
    Required: Yes
  • () taxonomy Taxonomy slug.
    Required: Yes
  • () parsed_args An array of potentially altered update arguments for the given term.
    Required: Yes
  • () args Arguments passed to wp_update_term().
    Required: Yes
定义在:
文档:

Filters the term parent.

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




源码

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