wpseek.com
WordPress开发者和主题制作者的搜索引擎



delete_{$taxonomy} › WordPress动作钩子

Since4.5.0
已弃用n/a
do_action( "delete_{$taxonomy}", $term, $tt_id, $deleted_term, $object_ids )
参数: (4)
  • (int) $term Term ID.
    Required: Yes
  • (int) $tt_id Term taxonomy ID.
    Required: Yes
  • (WP_Term) $deleted_term Copy of the already-deleted term.
    Required: Yes
  • (array) $object_ids List of term object IDs.
    Required: Yes
定义在:
文档:

Fires after a term in a specific taxonomy is deleted.

The dynamic portion of the hook name, $taxonomy, refers to the specific taxonomy the term belonged to.

Possible hook names include:

  • delete_category
  • delete_post_tag




源码

do_action( "delete_{$taxonomy}", $term, $tt_id, $deleted_term, $object_ids );