create_term
do_action( ‘create_term’, int $term_id , int $tt_id , string $taxonomy )
动作钩子::在创建新术语之后,在清理术语缓存之前立即激发。
Action Hook: Fires immediately after a new term is created, before the term cache is cleaned.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$term_id | (int) | 术语ID。 |
$tt_id | (int) | 术语分类ID。 |
$taxonomy | (string) | 分类蛞蝓。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.3.0 | wp-includes/taxonomy.php:2351 | 1 | 0 |
create_term 为WP2原创文章,链接:https://www.wp2.cn/hook/create_term/