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



pre_insert_term ›

Since3.0.0
已弃用n/a
apply_filters( 'pre_insert_term', $term, $taxonomy )
参数: (2)
  • (string|WP_Error) $term The term name to add or update, or a WP_Error object if there's an error.
    Required: Yes
  • (string) $taxonomy Taxonomy slug.
    Required: Yes
定义在:
文档:

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





源码

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