• Hi, i want to have subpage on my plugin in admin panel. I have menu registered by: add_options_page() but now i have created new file and i want to have access to this file from link in my plugin. I don’t want to have another postion in menu. How i can do this?

Viewing 1 replies (of 1 total)
  • Thread Starter kierzniak

    (@kierzniak)

    This work for me:

    add_action('admin_menu', 'cutting_banner_menu');
    
    function cutting_banner_menu() {
    
      add_options_page('Ads', 'Ads', 'manage_options', 'ads_banner', 'ads_banner_options');
      add_submenu_page('ads_banner_new', 'ads banner new', 'ads banner new', 'manage_options', 'ads_banner_new', 'ads_banner_new_page');
    
    }

    require_once(‘ads-banner-new.php’);

Viewing 1 replies (of 1 total)
  • The topic ‘Subpage in admin panel without menu.’ is closed to new replies.