[wp-trac] [WordPress Trac] #40408: REST API (v2) Does not handle metadata

WordPress Trac noreply at wordpress.org
Tue Jul 9 19:06:47 UTC 2019


#40408: REST API (v2) Does not handle metadata
--------------------------+--------------------------------
 Reporter:  teamcoltra    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  REST API      |     Version:  4.7.3
 Severity:  normal        |  Resolution:  reported-upstream
 Keywords:  needs-codex   |     Focuses:  docs, rest-api
--------------------------+--------------------------------
Changes (by TimothyBlynJacobs):

 * status:  new => closed
 * resolution:   => reported-upstream
 * milestone:  WordPress.org =>


Comment:

 The docs now mention needing to use `show_in_rest` when registering meta.
 But they don't yet mention the need to add `custom-fields` support.

 I've created a Github issue to track this in the WP REST API docs repo:
 https://github.com/WP-API/docs/issues/51

 @sgarza you can now use `register_post_meta` to register metadata for a
 specific post type: https://make.wordpress.org/core/2018/07/27
 /registering-metadata-in-4-9-8/

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40408#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list