=== WP REST API Sidebars === Contributors: njetskive Donate link: http://example.com/ Tags: api, json, REST, rest-api, sidebar, sidebars, widget, widgets Requires at least: 4.4 Tested up to: 4.4.1 Stable tag: 0.1.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html An extension for the WP REST API that exposes endpoints for sidebars and widgets. == Description == *note: this plugin is under heavy development and will receive frequent feature updates (including documentation) so stay tuned* = Currently supported endpoints = **/wp-json/wp/v2/sidebars** *returns a list of registered sidebars*
[
{
"name": "Sidebar Name",
"id": "sidebar-id",
"description": "Sidebar description...",
"class": "sidebar-class",
"before_widget": "
**/wp-json/wp/v2/sidebars/{id}** *returns the given sidebar*
{
"name": "Sidebar Name",
"id": "sidebar-id",
"description": "Sidebar description...",
"class": "sidebar-class",
"before_widget": "
== Installation ==
Get the content to the plugin directory and activate the plugin
note: to enable you to use any version/branch of the [WP REST API][] plugin during this rapid development phase there is currently no good way to check if it is active. Therefore make sure that it is before you activate this plugin.
[WP REST API]: https://wordpress.org/plugins/rest-api