Support
Support » Plugins » API – add_menu function help !
(@etdsbastar)
11 years, 9 months ago
Hello friends,
I am developing a plugin for wordpress, and I got stucked in one place. Please help me friends.
I am creating a top level menu with the command:
add_menu_page( "KHM Forums - Settings", "KHM Forums", 'administrator', 'khm_forum_main_menu', 'khm_forum_settings', plugins_url( KHM_FORUM_BASENAME . DS . 'images' . DS . 'menu.png' ), 61 );
Menu is created with no problem. Submenus are being created with the following code:
add_submenu_page( 'khm_forum_main_menu', 'KHM Forums - Forum Manager', 'Forums', 'administrator', 'khm_forum_manager', 'khm_forum_manager' );
Have a look in the menu structure:
[No bumping. If it’s that urgent, consider hiring someone.]