categories – WP-CLI Add category as menu item main-menu


I’ve found this documentation about adding terms using WP CLI: and tried to find out how I can add an existing category to the main-menu, but no luck.

The documentation hasn’t got an example of this one or isn’t clear enough to me at the moment.

Hopefully anyone else did this one before and can tell me how to accomplish it.
I’ve got now: (but this doesn’t work)

wp menu item add-term main-menu category 1

Thanks in advance!

stefantriep 4 months 2022-07-25T17:43:35-05:00 0 Answers 0 views 0

Leave an answer