Unofficial SMF API Documentation

./Sources/Subs-Menu.php

createMenu

function createMenu(array $menuData, array $menuOptions = array()): bool|array

Create a menu.

Type Parameter Description
array $menuData An array of menu data
array $menuOptions An array of menu options

destroyMenu

function destroyMenu(string $menu_id = 'last'): bool|void

Delete a menu.

Type Parameter Description
string $menu_id The ID of the menu to destroy or ‘last’ for the most recent one

Suggest an edit to this page on GitHub