wp menu item

EXAMPLES EXAMPLES

# Add an existing post to an existing menu
$ wp menu item add-post sidebar-menu 33 --title="Custom Test Post"
Success: Menu item added.

# Create a new menu link item
$ wp menu item add-custom sidebar-menu Apple http://apple.com
Success: Menu item added.

# Delete menu item
$ wp menu item delete 45
Success: 1 menu item deleted.

Top ↑

SUBCOMMANDS SUBCOMMANDS

Name Description
wp menu item add-custom

Adds a custom menu item.

wp menu item add-post

Adds a post as a menu item.

wp menu item add-term

Adds a taxonomy term as a menu item.

wp menu item delete

Deletes one or more items from a menu.

wp menu item list

Gets a list of items associated with a menu.

wp menu item update

Updates a menu item.

[shortcodehub id="4383"]
%d bloggers like this: