Core Function
View Source on Trac ↗ add_utility_page()
add_utility_page(
mixed $page_title,
mixed $menu_title,
mixed $capability,
mixed $menu_slug,
mixed $callback = '',
mixed $icon_url = ''
) Add a top-level menu page in the 'utility' section.
Parameters 4 required
| Name / Type | Description |
|---|---|
| $page_title string | The text to be displayed in the title tags of the page when the menu is selected. Required |
| $menu_title string | The text to be used for the menu. Required |
| $capability string | The capability required for this menu to be displayed to the user. Required |
| $menu_slug string | The slug name to refer to this menu by (should be unique for this menu). Required |
| $callback callable | Optional. The function to be called to output the content for this page. |
| $icon_url string | Optional. The URL to the icon to be used for this menu. |
Return Value
(string)
The resulting page's hook_suffix.
Function Information
Since Version
2.7.0
Source File
wp-admin/includes/deprecated.php
Advertisement