[wp-trac] [WordPress Trac] #38323: Reconsider $object_subtype handling in `register_meta()`

WordPress Trac noreply at wordpress.org
Tue Feb 7 05:54:42 UTC 2017


#38323: Reconsider $object_subtype handling in `register_meta()`
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Options, Meta APIs                   |  Review
 Severity:  normal                               |     Version:
 Keywords:  has-patch needs-unit-tests 2nd-      |  Resolution:
  opinion                                        |     Focuses:  rest-api
-------------------------------------------------+-------------------------

Comment (by swissspidy):

 The docs at https://developer.wordpress.org/rest-api/extending-the-rest-
 api/modifying-responses/ didn't mention the missing sub type handling but
 instead suggested using `register_meta( 'my-cpt' …)`. I adjusted that now,
 but of course needs to be reverted once this feature lands.

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


More information about the wp-trac mailing list