Changeset 2028904
- Timestamp:
- 02/12/2019 04:04:28 AM (7 years ago)
- Location:
- better-rest-endpoints/trunk
- Files:
-
- 2 added
- 4 edited
-
CHANGELOG.md (modified) (1 diff)
-
README.md (modified) (1 diff)
-
better-rest-endpoints.php (modified) (1 diff)
-
includes/wp_nav_menus_by_location.php (added)
-
includes/wp_nav_menus_by_name.php (added)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
better-rest-endpoints/trunk/CHANGELOG.md
r2017898 r2028904 9 9 10 10 n/a 11 12 ## [1.5.0] - 2019-02-11 13 14 ### Added 15 16 - Endpoint to get menu by location 11 17 12 18 ## [1.4.1] - 2019-01-23 -
better-rest-endpoints/trunk/README.md
r2017853 r2028904 252 252 - Yoast SEO Fields, if applicable 253 253 254 ### Menus 254 ### Menus from slug (name) 255 255 **`better-rest-endpoints/v1/menus/{menu-slug}`** 256 256 Gets a WordPress Menu by slug. Accepts no parameters. 257 257 258 258 Returns the following JSON Response in each item object: 259 260 - classes (array) 261 - description 262 - ID 263 - menu item parent 264 - menu_order 265 - slug 266 - target 267 - title 268 - url 269 270 ### Menus from location (theme location) 271 **`better-rest-endpoints/v1/menus/{menu-slug}`** 272 Gets a WordPress Menu by the theme location. Accepts no parameters. 273 274 Returns an empty array if the location can not be found or if it has no assigned menu. Returns an array of the following objects if a menu is assigned to the specified location: 259 275 260 276 - classes (array) -
better-rest-endpoints/trunk/better-rest-endpoints.php
r2017898 r2028904 108 108 include_once self::$plugin_dir . 'includes/get_cpt_by_slug.php'; 109 109 110 // get custom post type by id 111 include_once self::$plugin_dir . 'includes/wp_nav_menus.php'; 110 // get menus by menu name 111 include_once self::$plugin_dir . 'includes/wp_nav_menus_by_name.php'; 112 113 // get menus by menu location 114 include_once self::$plugin_dir . 'includes/wp_nav_menus_by_location.php'; 112 115 113 116 // get custom taxonomies -
better-rest-endpoints/trunk/readme.txt
r2017898 r2028904 43 43 == Changelog == 44 44 45 = 1.5.0, Febuary 11, 2019 46 * Add: Functionality to get menus by location 47 45 48 = 1.4.1, January 23, 2019 = 46 49 * Add: Functionality to get a page by slug or path for hierarchical pages
Note: See TracChangeset
for help on using the changeset viewer.