delete_term_relationships

动作钩子
do_action( 'delete_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:
定义位置
相关勾子
deleted_term_relationshipsadded_term_relationshipadd_term_relationshipdelete_term_taxonomydelete_site_option
相关方法
wp_delete_object_term_relationshipsdelete_term_metadelete_user_optiondelete_site_optiondelete_user_settingdelete_transient
引入
4.7.0
弃用
-

delete_term_relationships: 这个函数用来删除WordPress术语和其相关内容(如文章或页面)之间的关系。它通常用于删除一个术语和它的相关内容。

在删除一个对象项关系之前立即启动。

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

常见问题

FAQs
查看更多 >