[wp-trac] [WordPress Trac] #53915: Add show show_in_rest param to register_sidebar

WordPress Trac noreply at wordpress.org
Thu Aug 12 01:03:35 UTC 2021


#53915: Add show show_in_rest param to register_sidebar
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  5.8
 Severity:  normal        |   Keywords:
  Focuses:  rest-api      |
--------------------------+-----------------------------
 Sidebars can be queries via the sidebar REST API, added in WordPress 5.8.
 However this data is not public, as requires the current user to be have
 rights to edit the widget to see the sidebar in the api. Sidebars are
 registered in PHP, so adding `show_in_rest` param, should be easy. This
 opt-in feature would make sidebar data, including embedded widgets,
 public, if the dev opts in.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53915>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list