[wp-trac] [WordPress Trac] #41253: category meta endpoint always returns an empty array

WordPress Trac noreply at wordpress.org
Mon Jul 17 07:08:51 UTC 2017


#41253: category meta endpoint always returns an empty array
-------------------------------+------------------------------
 Reporter:  MrG0lden           |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  REST API           |     Version:  4.8
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  rest-api
-------------------------------+------------------------------

Comment (by MrG0lden):

 Replying to [comment:2 rmccue]:
 > Is your category meta registered? Meta keys that you want to appear in
 REST API responses must [https://developer.wordpress.org/rest-api
 /extending-the-rest-api/modifying-responses/#working-with-meta-and-
 register_meta be registered] with the `show_in_rest` option set to true
 (or to an array of options).

 Thanks, that works!

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


More information about the wp-trac mailing list