wp_delete_object_term_relationships

SummerySummery

Will unlink the object from the taxonomy or taxonomies.

Syntax

wp_delete_object_term_relationships( int $object_id, string|array $taxonomies )

DescriptionDescription

Will remove all relationships between the object and any terms in a particular taxonomy or taxonomies. Does not remove the term or taxonomy itself.

ParametersParameters

$object_id

(int) (Required) The term Object Id that refers to the term.

$taxonomies

(string|array) (Required) List of Taxonomy Names or single Taxonomy name.

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
2.3.0 Introduced.
Scroll to Top