Hiding Admin Page While Keeping Menu Expanded
For your particular situation, where you need to have a menu registered, but not shown unless you click on it from a link on another page you can add a conditional check to see if you’re on the editing page. If so, then change replace null with book per the add_submenu_page() parameters. add_action( ‘admin_menu’, ‘add_the_menus’ … Read more