wp_delete_object_term_relationships
wp_delete_object_term_relationships ( $object_id, $taxonomies )
Parameters:- (int) object_id The term object ID that refers to the term.
- (string|array) taxonomies List of taxonomy names or single taxonomy name.
Defined at: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Unlinks the object from the taxonomy or taxonomies.Will remove all relationships between the object and any terms in
a particular taxonomy or taxonomies. Does not remove the term or
taxonomy itself.