How to add admin.php to WP Admin Menu Link

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

Read more here:: How to add admin.php to WP Admin Menu Link

Leave a Reply

Your email address will not be published. Required fields are marked *