menu_page_url
menu_page_url ( $menu_slug, $echo = true )
Parameters:- (string) menu_slug The slug name to refer to this menu by (should be unique for this menu).
- (bool) echo Whether or not to echo the URL. Default true.
Returns:- (string) The menu page URL.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Get 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.