[wp-trac] [WordPress Trac] #10142: Add metadata support for taxonomy terms (was: Add metadata support for taxonomies)
WordPress Trac
noreply at wordpress.org
Wed Nov 5 18:44:05 UTC 2014
#10142: Add metadata support for taxonomy terms
-----------------------------+-----------------------------
Reporter: sirzooro | Owner:
Type: feature request | Status: reopened
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-----------------------------+-----------------------------
Changes (by boonebgorges):
* keywords: => needs-patch
* status: closed => reopened
* resolution: maybelater =>
* milestone: => Future Release
Comment:
In 4.1 we've begun to phase out shared taxonomy terms. See #5809, #21950.
In a future release of WordPress, we'll have one-to-one correspondence
between items in `wp_terms` and `wp_term_taxonomy` (and indeed, the two
may be merged). See #30261, which blocks this ticket. So I think it's time
to reopen and consider what the API would look like.
A few initial thoughts:
- Since term_id and term_taxonomy_id will be one-to-one, I think it makes
sense to use the public `term_id` as the "owner" of termmeta.
`term_taxonomy_id` thus becomes deprecated. (It could just as well be the
other way around, though then we need a translation layer.)
- We'll need CRUD wrappers for `add_metadata()`, `update_metadata()`, etc.
- `meta_query` support for `get_terms()` and maybe other term-fetching
functions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10142#comment:108>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list