Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

WP Admin Menu Structure (Sub Menu Appearance) WordPress

  • SOLVED

I would like to remove the appearance sub-menu from the wp-admin and then to create a new menu called Menu's and have that link to Appearance > Menus

See image for illustration of desired result;

http://www.upload3r.com/serve/250211/1298638737.jpg

Answers (2)

2011-02-25

Rashad Aliyev answers:


function remove_submenus() {
global $submenu;
unset($submenu['themes.php'][10]); // Removes Menu
}
add_action('admin_menu', 'remove_submenus');


$imgpath="http://yourimage.com/icon/icon.png";
function new_nav_menu () {
global $menu;
$menu[99] = array('', 'read', 'separator', '', 'menu-top menu-nav');
add_menu_page(__('Nav Menus', 'mav-menus'), __('Nav Menus', 'nav-menus'), 'edit_themes', 'nav-menus.php', '', $imgpath);
}
add_action('admin_menu', 'new_nav_menu');

2011-02-25

Oleg Butuzov answers:

deleted