Support » Plugins » duplicate add_submenu_page

  • Hello everyone,

    I would like to create a menu with add_menu_page far so good, but when I create a submenu associated with add_submenu_page I end up with a sub menu with the same name as the menu, I try to put a different name for the $ menu_slug but it does not work !

    add_menu_page('GestionPizzaMenu', 'Gestion Pizza', 'manage_options', basename(__FILE__), array(&$GestionPizzaInstance, 'displayPageAdmin'),'',3);
    add_submenu_page(basename(__FILE__), 'Rien', 'truc', 'manage_options', 'various', array(&$GestionPizzaInstance, 'displayPageAdminTwo'));

    Best regards

  • The topic ‘duplicate add_submenu_page’ is closed to new replies.