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)
  • (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
定义在:
文档:

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 );