8000 GitHub - Shelob9/jp-menu-route
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Shelob9/jp-menu-route

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JP API MENUS

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0