menu_page_url


menu_page_url ( $menu_slug, $display = true )

Parameters:
  • (string) menu_slug The slug name to refer to this menu by (should be unique for this menu).
  • (bool) display Optional. Whether or not to display the URL. Default true.
Returns:
  • (string) The menu page URL.
Defined at:

Description

Gets the URL to access a particular menu page based on the slug it was registered with.If the slug hasn't been registered properly, no URL will be returned.

Related Functions

get_page_uri, add_menu_page, wp_parse_url, add_submenu_page, get_page_link

Top Google Results

User discussions

wpseek mobile