wp_delete_object_term_relationships()

This WordPress function requires the CPT-onomy class.

Description

Will remove all relationships between the object and any terms in provided CPT-onomies. Does not remove the term or CPT-onomy itself.

Usage

$cpt_onomy->wp_delete_object_term_relationships( 						int
						$object_id
						, 						string|array
						$cpt_onomies
						 );

Parameters

$object_id (integer) (required)
Default: none
The object Id.

$cpt_onomies (string|array) (optional)
Default: none
If defined, will delete relationships between object and set CPT-onomies. If not defined, will delete ALL CPT-onomy relationships.

Return Values

(true|false) False for failure. True for success.