|
| 1 | +=== Plugin Name === |
| 2 | +Contributors: ClaudioLaBarbera, alebarbieri, joshuaslatedesign, raik, beltranrengifo, Trollhag, fifciuu |
| 3 | +Tags: api, json, json-rest-api, menu-routes, menus, REST, wp-api, wp-rest-api, v2 |
| 4 | +Requires at least: 4.4 |
| 5 | +Tested up to: 5.3.2 |
| 6 | +Stable tag: 0.7.7 |
| 7 | +License: GPLv2 or later |
| 8 | +License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 9 | + |
| 10 | +Adding menus endpoints on WP REST API v2 |
| 11 | + |
| 12 | +== Description == |
| 13 | + |
| 14 | +This plugin extends the [WordPress REST API (Version 2)](https://wordpress.org/plugins/rest-api/) with new routes for WordPress registered menus. |
| 15 | + |
| 16 | +The new routes available will be: |
| 17 | + |
| 18 | +* `/menus/v1/menus` list of every registered menu. |
| 19 | +* `/menus/v1/menus/<slug>` data for a specific menu. |
| 20 | +* `/menus/v1/locations` list of every registered menu location in your theme. |
| 21 | +* `/menus/v1/locations/<slug>` data for a specific menu location. |
| 22 | + |
| 23 | +Compatible with ACF menu's custom attributes and menu item's custom attributes. |
| 24 | + |
| 25 | +Compatible with [Menu Image, Icons made easy](https://wordpress.org/plugins/menu-image/). |
| 26 | + |
| 27 | +== Installation == |
| 28 | + |
| 29 | +1. Upload the plugin files to the `/wp-content/plugins/wp-rest-api-v2-menus` directory, or install the plugin through the WordPress plugins screen directly. |
| 30 | +2. Activate the plugin through the 'Plugins' screen in WordPress |
| 31 | + |
| 32 | + |
| 33 | +== Frequently Asked Questions == |
| 34 | + |
| 35 | += Is this an official extension of WP API? = |
| 36 | + |
| 37 | +There's no such thing. |
| 38 | + |
| 39 | += Can I contribute to the project? = |
| 40 | + |
| 41 | +Of course! This is the GitHub Repository https://github.com/thebatclaudio/wp-rest-api-v2-menus |
| 42 | + |
| 43 | +== Screenshots == |
| 44 | + |
| 45 | +Nothing to show. This plugin has no settings or frontend, it just extends WP API with new routes. |
| 46 | + |
| 47 | +== Changelog == |
| 48 | + |
| 49 | +0.7.7 - Added support for thumbnail_src and thumbnail_hover_src |
| 50 | + |
| 51 | +0.7.6 - Added contributors and changed description in readme.txt |
| 52 | + |
| 53 | +0.7.5 - Compatibility with Menu Image, Icons made easy; Bug fix: use get_term instead of get_category for taxonomies |
| 54 | + |
| 55 | +0.7.3 - Added slug to category item object |
| 56 | + |
| 57 | +0.7.2 - Added slug to menu item object |
| 58 | + |
| 59 | +0.7.1 - Bug fix: menu items were returned as an object instead of array |
| 60 | + |
| 61 | +0.7 - New way to check menu item's relatives, now it works with infinite child levels + various bug fixes |
| 62 | + |
| 63 | +0.6.1 - Bug fix |
| 64 | + |
| 65 | +0.6 - Added menu locations features |
| 66 | + |
| 67 | +0.5 - Added support for ACF custom fields |
| 68 | + |
| 69 | +0.4 - Added nested menus support and pages slugs |
| 70 | + |
| 71 | +0.3.2 - Bug fix: allowing underscore values in menu slug regexp |
| 72 | + |
| 73 | +0.3.1 - Bug fix: allowing numeric values in menu slug regexp |
| 74 | + |
| 75 | +0.3 - Bug fix |
| 76 | + |
| 77 | +0.2 - Updated compatibility |
| 78 | + |
| 79 | +0.1.1 - Bug fix |
0 commit comments