从数据库中删除一个术语后触发并清除缓存。
原型
do_action( 'delete_term', int $term, int $tt_id, string $taxonomy, mixed $deleted_term, array $object_ids )
参数
$term
(int)
术语ID。
$tt_id
(int)
术语分类ID。
$taxonomy
(string)
分类标本。
$deleted_term
(mixed)
以父函数指定的格式复制已删除的术语。否则WP_Error。
$object_ids
(array)
术语对象ID列表。
源文件
路径:wp-includes/taxonomy.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/delete_term/