WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Fulvio Notarstefano v1.3.2

WP API Menus

Extends WordPress WP REST API with new routes pointing to WordPress menus.

WP API Menus

The facts

Rating
5★ from 8
Active installs
2k+
Price
Free
Last updated
18 Aug 2020
Added
Jan 2015
Requires WP
3.6.0
Tested up to
WP 5.5.0
Downloads
110,304

Our analysis

AI-assisted

WP API Menus is a WordPress plugin that extends the JSON REST API by adding new routes specifically for registered menus. It allows you to access a list of all menus, details for specific menus, and menu locations within your WordPress site.

The plugin provides a tree structure for menu hierarchies and a flat array for menu items, enabling developers to manipulate menu data effectively. It is suitable for developers looking to integrate menu data into their applications or themes using the REST API.

Best for: This plugin is best for developers needing to work with WordPress menus through the REST API.

What it does well

  • Extends WordPress JSON REST API with new menu routes
  • Provides detailed data for registered menus and locations
  • Allows manipulation of menu item data using a filter hook

Where it falls short

  • Limited information on additional features or updates
  • Data structure may require additional handling for complex menus

Verdict

WP API Menus offers useful functionality for developers, though it may require some effort to handle the data structures effectively.

From the developer

Fulvio Notarstefano's own description of WP API Menus, lightly tidied.

This plugin extends the WordPress JSON REST API with new routes for WordPress registered menus

The new routes available will be:

  • /menus list of every registered menu.
  • /menus/<id> data for a specific menu.
  • /menu-locations list of all registered theme locations.
  • /menu-locations/<location> data for menu in specified menu in theme location.

Currently, the menu-locations/<location> route for individual menus will return a tree with full menu hierarchy, with correct menu item order and listing children for each menu item. The menus/<id> route will output menu details and a flat array of menu items. Item order or if each item has a parent will be indicated in each item attributes, but this route won’t output items as a tree.

You can alter the data arrangement of each individual menu items and children using the filter hook json_menus_format_menu_item.

An important note on WP API V2:

In V1 the routes are located by default at wp-json/menus/ etc.

In V2 the routes by default are at wp-json/wp-api-menus/v2/ (e.g. wp-json/wp-api-menus/v2/menus/, etc.) since V2 encourages prefixing and version namespacing.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for integrating services.

LocoAI

LocoAI

89

LocoAI - Auto Translate For Loco Translate is a powerful tool for developers looking to quickly translate thei...

Free 70k+ installs 4.9★ (637)
Uncanny Automator

The AI + Automation plugin for WordPress. Automate workflows across all your plugins and apps, add an AI agent...

Free 40k+ installs 4.9★ (156)
Open User Map

Create custom interactive maps with free Leaflet-based styles, no Google Maps API key, frontend marker submiss...

Free 10k+ installs 5★ (67)
Activity Log

Monitor every change on your WordPress site — who did what, when, and where it came from — for a complete audi...

Free 200k+ installs 4.3★ (74)
Reviews Feed

No API key required. Display Yelp and Google reviews for any business in a clean, customizable feed on your si...

Free 100k+ installs 4.4★ (34)
Bit integrations

Contact Form, Google Sheet, MailChimp, Brevo, Webhook, Zoho CRM Automation and Integration plugin that Connect...

Free 20k+ installs 4.9★ (160)