-
Notifications
You must be signed in to change notification settings - Fork 90
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
WP CLI - Menu Item Get Command #221
Comments
@NenadObradovic If you want to retrieve the parent menu item ID, you can do this by adding the field
With the above, for example, you can Does that provide what you need, or are you thinking of something else specifically? |
Hi schlessera, Thanks for your response.
and results will be for example then I want to grab that ID and to add additional pages to it as child menu items
I hope I explained it to you. Best regards, |
Hi schlessera, Example function for that wp menu item get main-menu --menu-item-title="Shop"
Best regards, |
Hi guys,
Could you consider to improve wp menu item commands with get method?
I have the problem to get some information of existing menu items for example ID. I try dynamically to add new items as child elements but I can't get parent menu item ID. At this moment we have options to list all menu items and here I can see menu item ID
wp menu item list main-menu
but if I want to create a simple program to collect menu items information and to add new items in predefined places, then I can't do that. Thanks for your time
Best regards,
Nenad
The text was updated successfully, but these errors were encountered: