[wp-trac] [WordPress Trac] #10142: Add metadata support for taxonomy terms
WordPress Trac
noreply at wordpress.org
Fri Sep 4 12:33:45 UTC 2015
#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:
-----------------------------+-----------------------------
Comment (by marsjaninzmarsa):
Replying to [comment:127 flixos90]:
> Okay granted, that's not the best solution either. In that case I would
rather have a `post_relationships` table being introduced, but that's
probably a little too much off-topic here.
Probably. :)
> > > > > significantly reduce performance on term queries
> > > >
> > > > Only if you opt-in this taxonomy to support metadata?
> > >
> > > I don't think opt-in for term meta is a good idea ("Decisions, not
Options"). Moreover, there is no opt-in for post and user meta, so why
would we do it for terms? I'd rather have a decision being made over the
next weeks/months.
> >
> > Yes, there is opt-in for post meta:
https://codex.wordpress.org/Function_Reference/register_post_type#supports
>
> Isn't that just for the ability to manually add custom fields? It
basically is post meta, but you can always use the underlying CRUD
functions for post meta even if that support is not enabled.
Hmm, dunno, I must check it out...
And you don't have `add_taxonomy_support()` function, so it cannot be
moved 1:1 anyway. Performance when querying Taxes is indeed important
thing, so we must ensure that taxmeta doesn't cause drop of speed for most
of users not using it. I think that they just shouldn't been querying by
default, and another `if` statement checking for optional `meta_query`
param or so shouldn't impact performance at all.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10142#comment:128>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list