Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function edit_admin_menu() {
- global $menu;
- $menu = array();
- $menu[10] = array (
- '0' => 'Startseite',
- '1' => 'read',
- '2' => 'index.php',
- '3' => '',
- '4' => 'menu-top menu-top-first menu-icon-dashboard',
- '5' => '',
- '6' => ''
- );
- $menu[20] = array (
- '0' => 'Design',
- '1' => 'switch_themes',
- '2' => 'themes.php',
- '3' => '',
- '4' => 'menu-top menu-icon-tools',
- '5' => '',
- '6' => ''
- );
- $menu[30] = array (
- '0' => 'Menüs',
- '1' => 'edit_theme_options',
- '2' => 'nav-menus.php',
- '3' => '',
- '4' => 'menu-top menu-icon-appearance',
- '5' => '',
- '6' => ''
- );
- # my 2nd try (same result)
- # add_menu_page('Menues', 'Menues', 'edit_theme_options', 'nav-menus.php', '', '', '');
- }
- add_action('admin_menu', 'edit_admin_menu');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement