Menus
in package
Table of Contents
- $subMenus : array<string|int, mixed>
- $mainMenuCapability : mixed
- $mainMenuHookSuffix : mixed
- $mainMenuSlug : mixed
- __call() : mixed
- __construct() : mixed
- addMenuSeparator() : mixed
- Add menu separator.
- addSubMenus() : mixed
- createMainMenu() : mixed
- getMainMenuSlug() : mixed
- registerSubMenu() : mixed
- reorderMenu() : array<string|int, mixed>
- Reorder menu items in admin.
Properties
$subMenus
protected
array<string|int, mixed>
$subMenus
= array()
$mainMenuCapability
private
mixed
$mainMenuCapability
$mainMenuHookSuffix
private
mixed
$mainMenuHookSuffix
$mainMenuSlug
private
mixed
$mainMenuSlug
= 'mphb_booking_menu'
Methods
__call()
public
__call(mixed $name, mixed $arguments) : mixed
Parameters
- $name : mixed
- $arguments : mixed
Return values
mixed —__construct()
public
__construct() : mixed
Return values
mixed —addMenuSeparator()
Add menu separator.
public
addMenuSeparator() : mixed
Return values
mixed —addSubMenus()
public
addSubMenus() : mixed
Tags
Return values
mixed —createMainMenu()
public
createMainMenu() : mixed
Return values
mixed —getMainMenuSlug()
public
getMainMenuSlug() : mixed
Return values
mixed —registerSubMenu()
public
registerSubMenu(int $order, string $parent_slug, string $page_title, string $menu_title, string $capability, string $menu_slug[, callable $function = '' ]) : mixed
Parameters
- $order : int
- $parent_slug : string
-
The slug name for the parent menu (or the file name of a standard WordPress admin page).
- $page_title : string
-
The text to be displayed in the title tags of the page when the menu is selected.
- $menu_title : string
-
The text to be used for the menu.
- $capability : string
-
The capability required for this menu to be displayed to the user.
- $menu_slug : string
-
The slug name to refer to this menu by (should be unique for this menu).
- $function : callable = ''
-
The function to be called to output the content for this page.
Return values
mixed —reorderMenu()
Reorder menu items in admin.
public
reorderMenu(array<string|int, mixed> $menuOrder) : array<string|int, mixed>
Parameters
- $menuOrder : array<string|int, mixed>