[wp-trac] [WordPress Trac] #39803: REST API meta type not working properly for custom post types

WordPress Trac noreply at wordpress.org
Tue Feb 7 05:52:44 UTC 2017


#39803: REST API meta type not working properly for custom post types
------------------------------------+------------------------
 Reporter:  chriseverson            |       Owner:
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:
Component:  REST API                |     Version:  4.7
 Severity:  normal                  |  Resolution:  duplicate
 Keywords:  has-patch dev-feedback  |     Focuses:  rest-api
------------------------------------+------------------------

Comment (by chriseverson):

 Replying to [comment:3 kadamwhite]:
 > @chriseverson Thank you for opening this ticket, and thank you
 @rheinardkorf for clarifying that this is a deficiency of `register_meta`.
 However, the issue that @chriseverson reported is separate from the
 `custom-fields` issue; it is true that registered meta cannot be
 restricted to a particular custom post type, which is a major weakness of
 the API's current meta capabilities.
 >
 > I'm going to close this as a duplicate of #38323, which is the ticket
 tracking the effort to provide a new argument to `register_meta`
 indicating that a particular meta value is intended only for use with a
 specific custom post type. I would welcome your participation in that
 thread!
 >
 > (And if I misunderstood your issue, please note as much below and we can
 continue the conversation.)

 Most excellent, thank you!

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


More information about the wp-trac mailing list