wp-api-menus
wp-api-menus copied to clipboard
Possible to retrieve menu by slug not ID?
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?
I'll look into it, that would definitely be helpful!
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.
I also just noticed that when finding a particular menu by location, it's not retrieving the slug of each menu item.
any updates or PRs for this? it would be a lot more useful to query by slug not ID in many use cases.