[wp-trac] [WordPress Trac] #32642: Add supports argument to register_taxonomy
WordPress Trac
noreply at wordpress.org
Fri May 6 00:18:54 UTC 2016
#32642: Add supports argument to register_taxonomy
-------------------------------------------------+-------------------------
Reporter: paulwilde | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future
Component: Taxonomy | Release
Severity: normal | Version: 4.3
Keywords: has-patch dev-feedback rest-api | Resolution:
2nd-opinion | Focuses:
-------------------------------------------------+-------------------------
Comment (by rmccue):
@boonebgorges Indeed. We use the post type `supports` to automatically
add/remove support for different parts of the response. For example, if
the post type doesn't support `title`, we remove the title from the
response (and the schema changes to reflect this).
Note that it's still technically possible to have titles on posts that
don't support `title`, but you have to implement the UI and such yourself.
Likewise, you can add it back to the API reasonably easily.
Our general assumption is that removing support for something indicates
you're doing something special with it, and probably want a different
output format for it. `supports` therefore is more of general indication
of "I want WP to handle this".
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32642#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list