MenuItemsManagerPage::addMenuItem
Add a new menu item in the Menu Manager: Menu Items screen.
Signature
public function addMenuItem([string
$title = 'Test Menu Item',
[string
$menuItemType = 'List All Categories',
[string
$menuLocation = 'Main Menu',
array
$otherFields]]] )
Parameters
-
$title
- Menu Title field
-
$menuItemType
- One of the allowed Menu Item Types (Single Article, Featured Contacts, etc.)
-
$menuLocation
- Menu Location field
-
$otherFields
- associative array of other fields in the form label => value.
Returns
- MenuItemsManagerPage