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



pre_insert_term › WordPress过滤钩子

Since6.1.0
已弃用n/a
apply_filters( 'pre_insert_term', $term, $taxonomy, $args )
参数: (3)
  • (string|WP_Error) $term The term name to add, or a WP_Error object if there's an error.
    Required: Yes
  • (string) $taxonomy Taxonomy slug.
    Required: Yes
  • (array|string) $args Array or query string of arguments passed to wp_insert_term().
    Required: Yes
定义在:
文档:

Filters a term before it is sanitized and inserted into the database.





源码

$term = apply_filters( 'pre_insert_term', $term, $taxonomy, $args );