I have a multiple pages in my plugin. But I want to keep only few sub-menus under my plugin menu. I want to load pages from anchor tabs. For that what I am currently doing is creating hidden sub-menu pages like this :
add_submenu_page( null, $ this->properties['page_title'], __('Settings','test-plugin-strings'), 'manage_options', 'test-plugin-feeds', array($ this, 'test_pluin_feeds') );
and i am providing the anchor tag link as :
<a href="<?php echo admin_url('admin.php?page=test_pluin_feeds'); ?>">Goto Feeds</a>
But doing so would force me to create many submenus with null parent slug. Is there any other better way to perform this action. On clicking the anchor tag how can I easily load the particular function without initially adding menu_page or sub_menu_page. Helps are appreciated. Thanks.