deleted_term_relationships

动作钩子
do_action( 'deleted_term_relationships', $object_id, $tt_ids, $taxonomy )
参数
  • (int) $object_id Object ID.
    Required:
  • (array) $tt_ids An array of term taxonomy IDs.
    Required:
  • (string) $taxonomy Taxonomy slug.
    Required:
定义位置
相关勾子
delete_term_relationshipsadded_term_relationshipadd_term_relationshipdeleted_term_taxonomydeleted_transient
相关方法
wp_delete_object_term_relationshipsdelete_term_metadelete_user_optiondelete_site_optiondelete_user_settingdelete_transient
引入
4.7.0
弃用
-

deleted_term_relationships: 当术语关系从WordPress数据库中被删除时,这个动作会被触发: 当术语关系被删除时,它通常用于执行额外的操作。

在删除一个对象项关系后立即触发。

do_action( 'deleted_term_relationships', $object_id, $tt_ids, $taxonomy );

常见问题

FAQs
查看更多 >