[wp-trac] [WordPress Trac] #45220: register_rest_field doesn't work

WordPress Trac noreply at wordpress.org
Mon Nov 5 18:11:55 UTC 2018


#45220: register_rest_field doesn't work
-------------------------------+------------------------------
 Reporter:  Dudo               |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  REST API           |     Version:  5.0
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by daniloalvess):

 Until then the `scheme` argument was optional a and by default `null`. If
 i use the `_fields` , have to specify all fields, including the default
 fields (id, title, content...).
 I would like to show just my custom fields. What is the best option? What
 should I do with the legacy projects without the `scheme` argument?

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


More information about the wp-trac mailing list