wp_remove_object_terms

SummerySummery

Remove term(s) associated with a given object.

Syntax

wp_remove_object_terms( int $object_id, string|int|array $terms, array|string $taxonomy )

ParametersParameters

$object_id

(int) (Required) The ID of the object from which the terms will be removed.

$terms

(string|int|array) (Required) The slug(s) or ID(s) of the term(s) to remove.

$taxonomy

(array|string) (Required) Taxonomy name.

ReturnReturn

(bool|WP_Error) True on success, false or WP_Error on failure.

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
3.6.0 Introduced.
Scroll to Top