Core Function
View Source on Trac ↗ menu_page_url()
menu_page_url( mixed $menu_slug, mixed $display = true ) Gets the URL to access a particular menu page based on the slug it was registered with.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $menu_slug string | The slug name to refer to this menu by (should be unique for this menu). Required |
| $display bool | Optional. Whether or not to display the URL. Default true. |
Return Value
(string)
The menu page URL.
Function Information
Since Version
3.0.0
Source File
wp-admin/includes/plugin.php
Advertisement