Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Users need to retrieve individual menu item details (particularly
menu_item_parentIDs) without listing all items and parsing output. Current workaround requireswp menu item list <menu> --fields=... | grep | awk.Changes
Menu_Item_Command.php: Added
get()method followingwp term getpattern<db-id>as required parameternav_menu_item(rejects regular posts)menu_order→positionandurl→linkfor consistency withlistcommand--field,--fields, and--formatoptionscomposer.json: Registered
menu item getcommandmenu-item.feature: Added test scenario covering table/JSON/CSV formats and error cases
Usage
All available fields match those in
wp menu item list: db_id, type, title, link, position, menu_item_parent, object_id, object, type_label, target, attr_title, description, classes, xfn.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
example.com/usr/bin/php /usr/bin/php /home/REDACTED/work/entity-command/entity-command/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php core install --url=REDACTED --title=WP CLI Site --admin_user=admin [email protected] --admin_password=password1 --skip-email ./tests/Compat/WP_Block_ProcessorTest.php git k/en�� -a --no-color /home/REDACTED/.dotnet/tools/git -v(dns block)/usr/bin/php /usr/bin/php /home/REDACTED/work/entity-command/entity-command/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php core install --url=REDACTED --title=WP CLI Site --admin_user=admin [email protected] --admin_password=password1 --skip-email --user=wp_cli_tefeatures/menu-item.feature sh -cli�� term url cal/bin/sh 2(dns block)/usr/bin/php /usr/bin/php /home/REDACTED/work/entity-command/entity-command/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php core install --url=REDACTED --title=WP CLI Site --admin_user=admin [email protected] --admin_password=password1 --skip-email ordpress.org ls vend�� /var/lib/waagent sh k/entity-command/entity-command/vendor/bin/sh term arent ndor/bin/sh sh(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.