duplicate add_submenu_page (1 post)

  1. mayaboys
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic