Plugin info

Total downloads: 1,053
Active installs: 0
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 11/30/2018 (2638 days ago)
Added to WordPress: 11/30/2018 (7 years old)
Minimum WordPress version: 4.7.1
Tested up to WordPress version: 4.9.28
Minimum PHP version: 7.2

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 2638 days ago

20/100

Is Laboratory WordPress Menus Rest API abandoned?

Possibly abandoned (last update 2638 days ago).

Compatibility

Requires WordPress: 4.7.1
Tested up to: 4.9.28
Requires PHP: 7.2

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

WP-REST-API V2 Menus
Rating 5.0/5 (6 reviews)Active installs 3,000
Tutexp Rest Api Menu
Rating 0.0/5 (0 reviews)Active installs 0
User Menus – Nav Menu Visibility
Rating 5.0/5 (1,262 reviews)Active installs 90,000
Nav Menu Roles
Rating 4.9/5 (218 reviews)Active installs 70,000
Shortcode in Menus
Rating 4.7/5 (81 reviews)Active installs 50,000
Font Awesome 4 Menus
Rating 4.9/5 (28 reviews)Active installs 40,000

Description

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
]

Installation

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.

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

No changelog available