Title: Laboratory WordPress Menus Rest API
Author: cardofearing
Published: <strong>30 november 2018</strong>
Last modified: 30 november 2018

---

Plugins zoeken

Deze plugin **is niet getest met de laatste 3 grotere versies van WordPress**. Mogelijk
wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen
ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

![](https://s.w.org/plugins/geopattern-icon/laboratory-menu-rest-endpoints.svg)

# Laboratory WordPress Menus Rest API

 Door [cardofearing](https://profiles.wordpress.org/ricardolabs/)

[Download](https://downloads.wordpress.org/plugin/laboratory-menu-rest-endpoints.zip)

 * [Details](https://nl.wordpress.org/plugins/laboratory-menu-rest-endpoints/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/laboratory-menu-rest-endpoints/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/laboratory-menu-rest-endpoints/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/laboratory-menu-rest-endpoints/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/laboratory-menu-rest-endpoints/)

## Beschrijving

Laboratory WordPress Menus Rest API

Generate API Endpoints for WordPress menus.

### Available Endpoints

#### Get Menu Items Endpoint: `/wp-json/lab-menus/v1/menu/{menu(string | int)}`

**Params:**

 * menu – Either the slug (string) or ID (int) of a menu **e.g.**
    - `http://example.com/wp-json/lab-menus/v1/menu/main-menu`
    - `http://example.com/wp-json/lab-menus/v1/menu/2`

**Return: Array of menu item objects, otherwise false.**

    ```
    [{
      "ID": 48,
      "menu_item_parent": "0",
      "object_id": "46",
      "object": "page",
      "type": "post_type",
      "type_label": "Page",
      "url": "http:\/\/localhost:8888\/example\/test\/",
      "title": "Academics",
      "target": "",
      "attr_title": "",
      "description": "",
      "classes": [""],
      // Rest of the details...,
    }]
    ```

#### Get Available Menus Endpoint: `/wp-json/lab-menus/v1/menu-options`

**e.g.** `http://example.com/wp-json/lab-menus/v1/menu-options`

**Return: Array of available menus objects.**

    ```
    [{
     "term_id": 3,
      "name": "Example Navigation",
      "slug": "example-navigation",
      "term_group": 0,
      "term_taxonomy_id": 3,
      "taxonomy": "nav_menu",
      "description": "",
      "parent": 0,
      "count": 6,
      "filter": "raw"
    }]
    ```

#### Get Registered Menu Locations Endpoint: `/wp-json/lab-menus/v1/menu-locations`

**e.g.** `http://example.com/wp-json/lab-menus/v1/menu-locations`

**Return: (Associative Array) Array of menus registered by the theme.**

    ```
    [
      "example-nav": 3,
      "main-navigation": 2,
      "footer-nav": 4
    ]
    ```

## Installatie

This plugin can be installed directly from your site.

 * Log in and navigate to Plugins  Add New.
 * Type “Laboratory WordPress Menus Rest API” into the Search and hit Enter.
 * Locate the Laboratory WordPress Menus Rest API plugin in the list of search results
   and click Install Now.
 * Once installed, click the Activate link.
 * Your endpoints will automatically be available.

It can also be installed manually.

 * Download the Laboratory WordPress Menus Rest API plugin from WordPress.org.
 * Unzip the package and move to your plugins directory.
 * Log into WordPress and navigate to the Plugins screen.
 * Locate Laboratory WordPress Menus Rest API in the list and click the Activate
   link.

## Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

## Bijdragers & ontwikkelaars

“Laboratory WordPress Menus Rest API” is open source software. De volgende personen
hebben bijgedragen aan deze plugin.

Bijdragers

 *   [ cardofearing ](https://profiles.wordpress.org/ricardolabs/)

[Vertaal “Laboratory WordPress Menus Rest API” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/laboratory-menu-rest-endpoints)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/laboratory-menu-rest-endpoints/),
haal de [SVN repository](https://plugins.svn.wordpress.org/laboratory-menu-rest-endpoints/)
op, of abonneer je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/laboratory-menu-rest-endpoints/)
via [RSS](https://plugins.trac.wordpress.org/log/laboratory-menu-rest-endpoints/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Versie **1.0.0**
 *  Laatst geüpdatet **8 jaar geleden**
 *  Actieve installaties **Minder dan 10**
 *  WordPress versie ** 4.7.1 of nieuwer **
 *  Getest t/m **4.9.35**
 *  PHP versie ** 7.2 of nieuwer **
 *  Taal
 * [English (US)](https://wordpress.org/plugins/laboratory-menu-rest-endpoints/)
 * Tags
 * [api](https://nl.wordpress.org/plugins/tags/api/)[menus](https://nl.wordpress.org/plugins/tags/menus/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/laboratory-menu-rest-endpoints/advanced/)

## Waarderingen

Er zijn nog geen beoordelingen ingediend.

[Je beoordeling](https://wordpress.org/support/plugin/laboratory-menu-rest-endpoints/reviews/#new-post)

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/laboratory-menu-rest-endpoints/reviews/)

## Bijdragers

 *   [ cardofearing ](https://profiles.wordpress.org/ricardolabs/)

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/laboratory-menu-rest-endpoints/)

## Doneren

Wil je de groei van deze plugin ondersteunen?

 [ Doneer aan deze plugin ](https://chiedolabs.com)