在对术语进行清理并将其插入数据库之前对术语进行过滤。
原型
apply_filters( 'pre_insert_term', string $term, string $taxonomy )
参数
$term
(string)
要添加或更新的术语。
$taxonomy
(string)
分类标本。
源文件
路径:wp-includes/taxonomy.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/pre_insert_term/