[wp-trac] [WordPress Trac] #17878: Add support for `wp_remove_object_terms()`
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 23 23:10:18 UTC 2011
#17878: Add support for `wp_remove_object_terms()`
-------------------------+-----------------------------
Reporter: ericmann | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.2
Severity: normal | Keywords: needs-patch
-------------------------+-----------------------------
WordPress currently provides functions for setting and retrieving taxonomy
terms for a post, but there is no support for removing taxonomy terms.
Currently, developers must:
1. Get an array of terms for an object
2. Remove selected terms from the array
3. Overwrite the object's terms using `wp_set_object_terms()`
This process is somewhat standard, and not too difficult to manage. But
most other functions in core come in a get/set/delete set, and this should
be no exception.
`wp_remove_object_terms()` should accept similar parameters as
`wp_set_object_terms()`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17878>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list