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

WordPress Trac noreply at wordpress.org
Mon Jul 10 07:39:39 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:                |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by 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).

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


More information about the wp-trac mailing list