Title: WP REST API Sidebars
Author: Martin Pettersson
Published: <strong>14. siječnja 2016.</strong>
Last modified: 14. siječnja 2016.

---

Pretraga dodataka

Dodatak **nije testiran s zadnje 3 glavna izdanja WordPressa**. Možda ga se više
ne održava ili pruža podršku i možda ima probleme sa kompatibilnošću s novijim inačicama
WordPressa.

![](https://s.w.org/plugins/geopattern-icon/wp-rest-api-sidebars.svg)

# WP REST API Sidebars

 Od [Martin Pettersson](https://profiles.wordpress.org/njetskive/)

[Preuzmi](https://downloads.wordpress.org/plugin/wp-rest-api-sidebars.0.1.1.zip)

 * [Detalji](https://hr.wordpress.org/plugins/wp-rest-api-sidebars/#description)
 * [Recenzije](https://hr.wordpress.org/plugins/wp-rest-api-sidebars/#reviews)
 *  [Instalacija](https://hr.wordpress.org/plugins/wp-rest-api-sidebars/#installation)
 * [Razvoj](https://hr.wordpress.org/plugins/wp-rest-api-sidebars/#developers)

 [Podrška](https://wordpress.org/support/plugin/wp-rest-api-sidebars/)

## Opis

An extension for the WP REST API that exposes endpoints for sidebars and widgets.

_note: this plugin is under heavy development and will receive frequent feature 
updates (including documentation) so stay tuned and checkout the [github](https://github.com/martin-pettersson/wp-rest-api-sidebars)
repo for the latest updates_

#### Currently supported endpoints

**/wp-json/wp-rest-api-sidebars/v1/sidebars** _returns a list of registered sidebars_

    ```
    [
        {
            "name": "Sidebar Name",
            "id": "sidebar-id",
            "description": "Sidebar description...",
            "class": "sidebar-class",
            "before_widget": "<aside id=\"%1$s\" class=\"widget %2$s\">",
            "after_widget": "<\/aside>",
            "before_title": "<h1 class=\"widget-title\">",
            "after_title": "<\/h1>"
        }
    ]
    ```

**/wp-json/wp-rest-api-sidebars/v1/sidebars/{id}** _returns the given sidebar_

    ```
    {
        "name": "Sidebar Name",
        "id": "sidebar-id",
        "description": "Sidebar description...",
        "class": "sidebar-class",
        "before_widget": "<aside id=\"%1$s\" class=\"widget %2$s\">",
        "after_widget": "<\/aside>",
        "before_title": "<h1 class=\"widget-title\">",
        "after_title": "<\/h1>",
        "rendered": "<aside id=\"widget-id-1\" class=\"widget widget_widget-id\">...",
        "widgets": [
            {
                "name": "Widget Name",
                "id": "widget-name-1",
                "classname": "widget_widget_name",
                "description": "Widget description",
                "rendered": "<aside id=\"widget-names-1\" class=\"widget widget_widget_name\">..."
            }
        ]
    }
    ```

## Instalacija

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](https://wordpress.org/plugins/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.

## Recenzije

![](https://secure.gravatar.com/avatar/1cfeb5d44f459bab1846e235a153dbc3efbd9fc9ab4137bc3be58db5fa6ca3f8?
s=60&d=retro&r=g)

### 󠀁[Works great!](https://wordpress.org/support/topic/works-great-2781/)󠁿

 [Quema Labs](https://profiles.wordpress.org/nicoandrade/) 03. rujna 2016.

Using it for a theme and works great!

 [ Pročitajte 1 recenziju ](https://wordpress.org/support/plugin/wp-rest-api-sidebars/reviews/)

## Suradnici i Programeri

“WP REST API Sidebars” je softver otvorenog koda. Sljedeće osobe su doprinijele 
ovom dodatku.

Suradnici

 *   [ Martin Pettersson ](https://profiles.wordpress.org/njetskive/)

[Prevedite “WP REST API Sidebars” na svoj jezik.](https://translate.wordpress.org/projects/wp-plugins/wp-rest-api-sidebars)

### Zainteresirani ste za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/wp-rest-api-sidebars/),
pogledajte [SVN spremište](https://plugins.svn.wordpress.org/wp-rest-api-sidebars/)
ili se pretplatite na [dnevnik razvoja](https://plugins.trac.wordpress.org/log/wp-rest-api-sidebars/)
od [RSS](https://plugins.trac.wordpress.org/log/wp-rest-api-sidebars/?limit=100&mode=stop_on_copy&format=rss).

## Dnevnik promjena

#### 0.1.1

 * Now using a plugin specific endpoint namespace: /wp-rest-api-sidebars/v1
 * Including widgets in the /sidebars/{id} response

## Meta

 *  Version **0.1.1**
 *  Zadnje ažuriranje **prije 10 godina**
 *  Aktivnih instalacija **100+**
 *  WordPress inačica ** 4.4 ili viša **
 *  Testirano do **4.4.34**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-rest-api-sidebars/)
 * Oznaka
 * [api](https://hr.wordpress.org/plugins/tags/api/)[JSON](https://hr.wordpress.org/plugins/tags/json/)
   [rest](https://hr.wordpress.org/plugins/tags/rest/)[rest-api](https://hr.wordpress.org/plugins/tags/rest-api/)
   [sidebar](https://hr.wordpress.org/plugins/tags/sidebar/)
 *  [Napredni pogled](https://hr.wordpress.org/plugins/wp-rest-api-sidebars/advanced/)

## Ocjena

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/wp-rest-api-sidebars/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/wp-rest-api-sidebars/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wp-rest-api-sidebars/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wp-rest-api-sidebars/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/wp-rest-api-sidebars/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-rest-api-sidebars/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-rest-api-sidebars/reviews/)

## Suradnici

 *   [ Martin Pettersson ](https://profiles.wordpress.org/njetskive/)

## Podrška

Želite nešto reći? Potrebna vam je pomoć?

 [Pregledaj forum za podršku](https://wordpress.org/support/plugin/wp-rest-api-sidebars/)

## Doniraj

Želite li podržati napredak ovog dodatka?

 [ Donirajte ovom dodatku ](http://example.com/)