Skip to content

Instantly share code, notes, and snippets.

@wpscholar
Created Aug 25, 2021
Embed
What would you like to do?
WP-CLI Script menu creation
wp menu create "Footer Primary Menu"
wp menu item add-custom footer-primary-menu "Item 1" "#"
wp menu item add-custom footer-primary-menu "Item 2" "#"
wp menu item add-custom footer-primary-menu "Item 3" "#"
wp menu location assign footer-primary-menu footer-primary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment