Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to retrieve menu by slug not ID? #46

Open
MichaelLSmith opened this issue Aug 18, 2017 · 4 comments
Open

Possible to retrieve menu by slug not ID? #46

MichaelLSmith opened this issue Aug 18, 2017 · 4 comments
Assignees

Comments

@MichaelLSmith
Copy link

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?

@mckernanin mckernanin self-assigned this Aug 18, 2017
@mckernanin
Copy link

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

@MichaelLSmith
Copy link
Author

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
Copy link
Author

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

@drewcovi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants