delete_term
do_action( ‘delete_term’, int $term , int $tt_id , string $taxonomy , mixed $deleted_term , array $object_ids )
动作钩子::从数据库中删除一个术语并清除缓存后激发。
Action Hook: Fires after a term is deleted from the database and the cache is cleaned.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$term | (int) | 术语ID。 |
$tt_id | (int) | 术语分类ID。 |
$taxonomy | (string) | 分类蛞蝓。 |
$deleted_term | (mixed) | 已删除术语的副本,格式由父函数指定。否则会出错。 |
$object_ids | (array) | 术语对象ID的列表。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.5.0 | wp-includes/taxonomy.php:1921 | 1 | 0 |
delete_term 为WP2原创文章,链接:https://www.wp2.cn/hook/delete_term/