I am trying to add a menu link in wordpress admin navigation bar. I am expecting a link like
/wp-admin/admin.php?page=function_name
The code I am using is
add_submenu_page( 'nxssnap',__( 'Calendar View', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Calendar View', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxs-function_name', array( $this, 'showPage_about' ) ,0 );
The link that I get from the above code is
/wp-admin/function_name
What change do I need to make so that appends this admin.php?page= at the start of URL
This is the main menu item for which i am trying to add submenu.
$this->page = add_menu_page( 'Social Networks Auto Poster', 'SNAP|AutoPoster','haveown_snap_accss','nxssnap',array( $this, 'showPage_accounts' ), NXS_PLURL.'img/snap-icon.png');
add_menu_page()
) before adding the submenu page.