Support

Account

Home Forums Add-ons Options Page Multiple top level options pages Reply To: Multiple top level options pages

  • @elliot

    This works very well!

    add_action("admin_menu", "setup_menu");  
    function setup_menu() {  
    add_menu_page('Page Title', 'Title', 'manage_options', 'acf-acf-page-slug', 'some_function');
    }

    Is there a way to hide options subpage? I tried with:

    add_action( 'admin_menu', 'remove_menus', 999 );
    function remove_menus() {
    	remove_submenu_page( 'admin.php', 'acf-acf-page-slug' );
    }

    but no luck