Just add your custom item into $menu
instead of $submenu
.
Use here as a reference for parent menu structure.
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/menu.php
Eg.
add_action( 'admin_menu' , 'admin_menu_wpse32975' );
function admin_menu_wpse32975() {
global $menu;
$menu[9999] = array( __('My Menu'), 'manage_options', 'http://www.google.com', '', 'open-if-no-js menu-top', '', 'div' );
}
Related Posts:
- Make sub menu items a main link in the admin menu using fuctions.php
- Add column to pages table
- Add column to pages table
- Changing Admin Menu Labels
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Add “external” link to admin menu in the backend
- How to remove items from +New admin menu?
- Appearance->Editor not visible
- Admin account only shows Profile and Dashboard with no activity
- How to prevent parent admin page from appearring as a child admin page
- How do I set the homepage to the WordPress Admin Dashboard login?
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- How to break line / add to ADMIN menu
- Creating custom admin panel pages without making a plugin?
- Dashboard : remove Safari navigator message
- Trying to create a page as a menu item in the admin while keeping the admen panel visible
- WordPress Admin Panel Left Sidebar No showing on Post create page
- Localhost install: Administrator lost administrator access; cannot access Dashboard
- wp_is_mobile() inside js
- How to make the Panel // WP-Admin lighter via Mobile
- Admin Page Redirect
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to remove screen options and help links in the admin area?
- Sort admin menu items
- Custom column for changing post status via ajax
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- How to add notification bubble for my custom admin menu page
- How to display the user that published a pending post?
- How to remove the site health dashboard widget?
- Copy my user account’s wp-admin dashboard layout to other users?
- How to disable or hide “collapse menu”
- How to wrap admin menus and menu headers in additional divs without modifying the WordPress core?
- How to disable admin flyout menus?
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- Hide pages depending on role
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- How can I get an array/list of all current WordPress Admin Menu items?
- how to only add a top-level admin menu without it creating a sub-level-menu
- Rename W3 Total Cache admin menu
- Cannot log into WordPress Dashboard after removing/adding .htaccess
- Prevent /wp-admin/ from redirecting to homepage?
- Theme menu in Admin Panel
- What is the practical difference between is_admin() and is_blog_admin()?
- Hiding Admin Page While Keeping Menu Expanded
- Locked Out Of WordPress Admin Dashboard After Server Move
- Allow administrators to pick post author on custom post type edit screen
- Dashboard menu missing
- What are the requirements to make the admin toolbar show up on the front end
- Add menu option to “New Post” menu in admin bar
- Remove bulk option row
- Admin menu in front-end
- How do I let logged out users see the dashboard?
- Remove or move admin submenus under a new menu
- How to remove menu installed in wp-admin by a theme? [closed]
- WP admin broken. Not saving catgories or adding categories to menu
- Why am I timing out when using the Menu Editor?
- How to replace “Password Protected” text with icon in Admin
- In the Admin Dashboard, can I choose which sections to display?
- Removing Dashboard Menu Items Through The Database
- load-{$page hook} and returned parameter
- Can’t access wp-admin, redirects to http://%24domain/wp-admin/
- Making Comments, a sub_menu in admin menu
- How can I add a menu item to the admin area?
- how can I change the font on Edit Post area (admin dashboard)
- External HTTP API calls slowing down WordPress admin [closed]
- Disable Auto-Expanding Menu in WordPress Admin Menus
- Change users.php WP_User_Query
- Uncaught SyntaxError: Unexpected Token Illegal
- Change maxlength of link_description in dashbord link section?
- Newly created user role not displaying on users screen
- How can I put content before my custom post type default pages?
- WordPress Admin extremely slow when other admin logged in
- Broken Customizer page
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- I can’t access my wp admin dashboard
- Weird white space in admin area
- WordPress Dashboard add user password not working, etc
- Accessing wordpress tool in local MAMP Site
- How to move “Collapse Menu” to top of admin bar?
- Need Help Regarding Menu Magement in admin
- Appearance -> Menus doesn’t show
- adding existing menu page on new customer user role
- Failed to load resource: the server responded with a status of 431 ()
- Remove Theme menu link from Admin Panel
- Dashboard controls have all stopped working
- Trying to list user and post information from (wp_includes/post.php ) causes Fatal error
- Admin section showing CUSTOM Permalink structure thus resulting in permission error [closed]
- Appearance > Menus
- Customizing label/title output of admin nav_menu selecter
- Is It Possible To A Link To The Homepage From The Admin Sidebar?
- List of WordPress menu item indices?
- Getting 404 page not found error while trying to access add new plugin / themes
- Unable to access dashboard (wp-admin) only
- Create custom page and custom menu
- Launch wordpress site to local computer from live website backed-up
- Admin Login page not working at all
- Add custom fields to specific menus
- Move Custom Taxonomy Menu to Top Level Admin Menu
- Why when I click on a link into the WP admin panel I am redirected to a link that doesn’t contains wp-admin prefix, so I obtain 404 error
- get_current_screen() does not return parent_file