WPDev.one
Core Function
View Source on Trac ↗

wp_remove_object_terms()

wp_remove_object_terms( mixed $object_id, mixed $terms, mixed $taxonomy )

Removes term(s) associated with a given object.

Parameters 3 required

Name / Type Description
$object_id
int

The ID of the object from which the terms will be removed.

Required
(string

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

Required
$taxonomy
string

Taxonomy name.

Required

Return Value

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

Function Information

Since Version
3.6.0
Source File
wp-includes/taxonomy.php
Advertisement