wp menu item add-custom <menu> <title> <link>

Adds a custom menu item

Arguments

NameDescription
menuThe name, slug, or term ID for the menu
titleTitle for the link
linkTarget URL for the link

Options

NameDescription
--description <description>Set a custom description for the menu item
--attr-title <attr-title>Set a custom title attribute for the menu item
--target <target>Set a custom link target for the menu item
--classes <classes>Set a custom link classes for the menu item
--position <position>Specify the position of this menu item
--parent-id <parent-id>Make this menu item a child of another menu item
--porcelainOutput just the new menu item ID