edited_{$taxonomy}
do_action( “edited_{$taxonomy}”, int $term_id , int $tt_id )
动作钩子::更新特定分类法的术语并清理术语缓存后激发。
Action Hook: Fires after a term for a specific taxonomy has been updated, and the term cache has been cleaned.
说明(Description)
钩子名的动态部分,$taxonomy,是指taxonomy slug。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$term_id | (int) | 术语ID。 |
$tt_id | (int) | 术语分类ID。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.3.0 | wp-includes/taxonomy.php:3051 | 1 | 0 |
edited_{$taxonomy} 为WP2原创文章,链接:https://www.wp2.cn/hook/edited_taxonomy/