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



delete_term ›

Since4.5.0
已弃用n/a
do_action( 'delete_term', $term, $tt_id, $taxonomy, $deleted_term, $object_ids )
参数: (5)
  • (int) $term Term ID.
    Required: Yes
  • (int) $tt_id Term taxonomy ID.
    Required: Yes
  • (string) $taxonomy Taxonomy slug.
    Required: Yes
  • (mixed) $deleted_term Copy of the already-deleted term, in the form specified by the parent function. WP_Error otherwise.
    Required: Yes
  • (array) $object_ids List of term object IDs.
    Required: Yes
定义在:
文档:

Fires after a term is deleted from the database and the cache is cleaned.





源码

do_action( 'delete_term', $term, $tt_id, $taxonomy, $deleted_term, $object_ids );