Title: WP-REST-API Menus
Author: jcdev518
Published: <strong>19. marts, 2018</strong>
Last modified: 26. marts, 2018

---

Søg plugins

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

![](https://ps.w.org/wp-rest-api-menus/assets/icon-128x128.jpg?rev=1842417)

# WP-REST-API Menus

 Af [jcdev518](https://profiles.wordpress.org/jcdev518/)

[Download](https://downloads.wordpress.org/plugin/wp-rest-api-menus.zip)

 * [Detaljer](https://da.wordpress.org/plugins/wp-rest-api-menus/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/wp-rest-api-menus/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/wp-rest-api-menus/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/wp-rest-api-menus/#developers)

 [Support](https://wordpress.org/support/plugin/wp-rest-api-menus/)

## Beskrivelse

This plugin adds “routes” or “endpoints” to WP REST API that allows for retrieval
of
 menu data as JSON.

Updated port of “WP-REST-API V2 Menus” by Claudio La Barbera (http://www.claudiolabarbera.
com)

**Usage**

**Get all registered menus:**

    ```
    GET /wp-menus/v1/menus
    https://yourwpsite.com/wp-json/wp-menus/v1/menus
    ```

**Get menu data as JSON from menu slug:**

    ```
    GET /wp-menus/v1/menus/{slug}
    https://yourwpsite.com/wp-json/wp-menus/v1/menus/{slug}
    ```

Gets the contents of a registered menu by its “slug”.

When assigning a menu a location in /wp-admin/nav-menus.php?action=locations
 the
slug is the name of the menu in lowercase and without any spaces like a post slug.

If your menu name is Main Menu:
 https://yourwpsite.com/wp-json/menus/v1/wp-menus/
main-menu

## Installation

There are no requirements other than WordPress and one active menu. Installation
is simple:

 1. Upload the `wp-rest-api-menus` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## FAQ

  Installation Instructions

There are no requirements other than WordPress and one active menu. Installation
is simple:

 1. Upload the `wp-rest-api-menus` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

  How do I use this plugin?

It creates a JSON interpretation of any “registered” menu mainly for front-end use.
If you have any questions feel free to contact me: https://www.amorphouswebsolutions.
com/contact/

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“WP-REST-API Menus” er open source-software. Følgende personer har bidraget til 
dette plugin.

Bidragsydere

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

[Oversæt “WP-REST-API Menus” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/wp-rest-api-menus)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/wp-rest-api-menus/),
tjek [SVN repository](https://plugins.svn.wordpress.org/wp-rest-api-menus/), eller
abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/wp-rest-api-menus/)
via [RSS](https://plugins.trac.wordpress.org/log/wp-rest-api-menus/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.0

 * Requires PHP 5.6x at the very least.

## Meta

 *  Version **1.0**
 *  Senest opdateret **8 år siden**
 *  Aktive installationer **80+**
 *  WordPress-version ** 4.7.0 eller højere **
 *  Testet op til **4.9.29**
 *  PHP-version ** 5.6 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/wp-rest-api-menus/)
 * Tags
 * [JSON](https://da.wordpress.org/plugins/tags/json/)[json rest api](https://da.wordpress.org/plugins/tags/json-rest-api/)
   [menus](https://da.wordpress.org/plugins/tags/menus/)[wp-api](https://da.wordpress.org/plugins/tags/wp-api/)
   [wp-rest-api](https://da.wordpress.org/plugins/tags/wp-rest-api/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/wp-rest-api-menus/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

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

[Se alle anmeldelser.](https://wordpress.org/support/plugin/wp-rest-api-menus/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/wp-rest-api-menus/)

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](https://amorphouswebsolutions.com/plugins)