wp_remove_object_terms


wp_remove_object_terms ( $object_id, $terms, $taxonomy )

Parameters:
  • (int) $object_id The ID of the object from which the terms will be removed.
  • (string|int|array) $terms The slug(s) or ID(s) of the term(s) to remove.
  • (array|string) $taxonomy Taxonomy name.
Returns:
  • (bool|WP_Error) True on success, false or WP_Error on failure.
Defined at:

Description

Remove term(s) associated with a given object.

Related Functions

wp_set_object_terms, wp_get_object_terms, wp_add_object_terms, wp_get_post_terms, wp_set_post_terms

Top Google Results

User discussions

wpseek mobile