wp-api-menus icon indicating copy to clipboard operation
wp-api-menus copied to clipboard

Possible to retrieve menu by slug not ID?

Open MichaelLSmith opened this issue 7 years ago • 4 comments

It would be great to a menu using its slug in the in the URL such as:

wp-json/wp-api-menus/v2/menus/slug-name

How hard would this be to implement?

MichaelLSmith avatar Aug 18 '17 13:08 MichaelLSmith

I'll look into it, that would definitely be helpful!

mckernanin avatar Aug 18 '17 16:08 mckernanin

Thanks. I tried forking the plugin and doing it myself, but I still have lots to learn! If you get it, let me know how you did it.

MichaelLSmith avatar Aug 18 '17 22:08 MichaelLSmith

I also just noticed that when finding a particular menu by location, it's not retrieving the slug of each menu item.

MichaelLSmith avatar Aug 19 '17 01:08 MichaelLSmith

any updates or PRs for this? it would be a lot more useful to query by slug not ID in many use cases.

drewcovi avatar Oct 26 '17 15:10 drewcovi