shelob9 / jp-menu-route
Adds ability to retrieve menus via the WordPress REST API (WP-API).
Requires
- php: >=5.3.0
- composer/installers: ~1.0.0
This package is auto-updated.
Last update: 2024-11-08 07:17:17 UTC
README
Adds a menu endpoint for the WordPress REST API.
Installation
This is not a plugin.
Add "jp-menu-route": "dev-master"
to your site/plugin/theme's composer.json file. Include composer autoloader.
Use
Make request to wp-json/jp-api/menus/
to get info about all menus.
Make request to wp-json/jp-api/menus/<menu-name>
to get all items of specific menu.
Note that the base URL for the REST API "wp-json" can be modified with a filter. Also this lib's route can be modified using the JP_API_ROUTE constant.
License, Copyright etc.
Copyright 2014 Josh Pollock Licensed under the terms of the GNU General Public License version 2 or later. Please share with your neighbor.