WP-API / menus-endpoints

Feature plugin for Menu Endpoints
43 stars 13 forks source link

Initial implementation of menu endpoints #21

Closed wpscholar closed 5 years ago

wpscholar commented 5 years ago

Port patch 40878.4.diff from Trac (https://core.trac.wordpress.org/ticket/40878)

spacedmonkey commented 5 years ago

@wpscholar The two endpoints, that should be merged, are the nav_menu and nav_menu_item. The other endpoints are nice, but I don't think they are needed in first version and should be broken up into different PR / tickets.

One simple question I have, how do I get menu items filter by a nav menu? The fact, I can't workout how to do this, is a real problem.

wpscholar commented 5 years ago

@spacedmonkey Thanks for the feedback! I'll be out the rest of this week, but I'll update the PR to separate out those endpoints and make sure we can filter menu items by nav. As far as documentation, I'll just add some more details to the readme file on how filtering works.

TimothyBJacobs commented 5 years ago

Thanks for working on this @wpscholar! I'm going to go ahead and close this for now to focus on the current menu PRs.