{"id":83161,"date":"2018-03-19T01:20:45","date_gmt":"2018-03-19T01:20:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-rest-api-menus\/"},"modified":"2018-03-26T22:33:46","modified_gmt":"2018-03-26T22:33:46","slug":"wp-rest-api-menus","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/wp-rest-api-menus\/","author":15794145,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"4.9.29","requires":"4.7.0","requires_php":"5.6","requires_plugins":"","header_name":"WP-REST-API Menus","header_author":"Jeff Cicero","header_description":"Adds menu endpoints to WP REST API, which is now part of core WP.","assets_banners_color":"","last_updated":"2018-03-26 22:33:46","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/amorphouswebsolutions.com\/plugins","header_plugin_uri":"https:\/\/www.amorphouswebsolutions.com\/plugins","header_author_uri":"https:\/\/amorphouswebsolutions.com","rating":0,"author_block_rating":0,"active_installs":70,"downloads":2439,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1842417","resolution":"128x128","location":"assets"}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1118,38692,231,2300,2301],"plugin_category":[43],"plugin_contributors":[154538],"plugin_business_model":[],"class_list":["post-83161","plugin","type-plugin","status-publish","hentry","plugin_tags-json","plugin_tags-json-rest-api","plugin_tags-menus","plugin_tags-wp-api","plugin_tags-wp-rest-api","plugin_category-customization","plugin_contributors-jcdev518","plugin_committers-jcdev518"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wp-rest-api-menus\/assets\/icon-128x128.jpg?rev=1842417","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin adds \"routes\" or \"endpoints\" to WP REST API that allows for retrieval of\nmenu data as JSON.<\/p>\n\n<p>Updated port of \"WP-REST-API V2 Menus\" by Claudio La Barbera (http:\/\/www.claudiolabarbera.com)<\/p>\n\n<p><strong>Usage<\/strong><\/p>\n\n<p><strong>Get all registered menus:<\/strong><\/p>\n\n<pre><code>GET \/wp-menus\/v1\/menus\nhttps:\/\/yourwpsite.com\/wp-json\/wp-menus\/v1\/menus\n<\/code><\/pre>\n\n<p><strong>Get menu data as JSON from menu slug:<\/strong><\/p>\n\n<pre><code>GET \/wp-menus\/v1\/menus\/{slug}\nhttps:\/\/yourwpsite.com\/wp-json\/wp-menus\/v1\/menus\/{slug}\n<\/code><\/pre>\n\n<p>Gets the contents of a registered menu by its \"slug\".<\/p>\n\n<p>When assigning a menu a location in \/wp-admin\/nav-menus.php?action=locations\nthe slug is the name of the menu in lowercase and without any spaces like a post slug.<\/p>\n\n<p>If your menu name is Main Menu:\nhttps:\/\/yourwpsite.com\/wp-json\/menus\/v1\/wp-menus\/main-menu<\/p>\n\n<!--section=installation-->\n<p>There are no requirements other than Wordpress and one active menu. Installation is simple:<\/p>\n\n<ol>\n<li>Upload the <code>wp-rest-api-menus<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><p>There are no requirements other than Wordpress and one active menu. Installation is simple:<\/p>\n\n<ol>\n<li>Upload the <code>wp-rest-api-menus<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol><\/dd>\n<dt>How do I use this plugin?<\/dt>\n<dd><p>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\/<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Requires PHP 5.6x at the very least.<\/li>\n<\/ul>","raw_excerpt":"Adds menu endpoints to core WP REST API.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/83161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=83161"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jcdev518"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=83161"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=83161"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=83161"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=83161"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=83161"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=83161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}