[wp-trac] [WordPress Trac] #40408: REST API (v2) Does not handle metadata
WordPress Trac
noreply at wordpress.org
Tue Apr 11 02:40:19 UTC 2017
#40408: REST API (v2) Does not handle metadata
--------------------------+-----------------------------
Reporter: teamcoltra | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: WordPress.org
Component: REST API | Version: 4.7.3
Severity: normal | Resolution:
Keywords: needs-codex | Focuses: docs, rest-api
--------------------------+-----------------------------
Comment (by teamcoltra):
Replying to [comment:1 rmccue]:
> This should be clearer in the documentation, but
[https://make.wordpress.org/core/2016/07/20/additional-register_meta-
changes-in-4-6/ meta needs to be registered] with `show_in_rest => true`
set in the
[https://developer.wordpress.org/reference/functions/register_meta/
`register_meta` call]. Seems that we need an additional page in the REST
API handbook for this (which I thought we had, but turns out we don't).
This fixed it. I would also ''suggest'' a feature request to allow a
checkbox or something to just default allow this for all metadata or to
allow custom fields to be granted this in the GUI instead of creating a
custom plugin for it. That said, that's down the line.
This should be updated in the documentation though. Thanks for your help.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40408#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list