delete_{$taxonomy}
do_action( “delete_{$taxonomy}”, int $term , int $tt_id , mixed $deleted_term , array $object_ids )
动作钩子::在删除特定分类法中的术语后激发。
Action Hook: Fires after a term in a specific taxonomy is deleted.
说明(Description)
hook名称的动态部分,$taxonomy是指这个术语所属的特定分类法。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$term | (int) | 术语ID。 |
$tt_id | (int) | 术语分类ID。 |
$deleted_term | (mixed) | 已删除术语的副本,格式由父函数指定。否则会出错。 |
$object_ids | (array) | 术语对象ID的列表。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.5.0 | wp-includes/taxonomy.php:1938 | 1 | 0 |
delete_{$taxonomy} 为WP2原创文章,链接:https://www.wp2.cn/hook/delete_taxonomy/