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
- Organizing Code in your WordPress Theme's functions.php File?
- Is there ANY way to remove comments function and section totally?
- How to add a custom metabox to the Menu Management admin screen?
- How to add custom submenu links in wp-admin menus?
- Edit specific nodes in WP_Admin_Bar
- How to create sub menu with a URL parameter?
- Remove Pagination in Appearance -> Menus -> Categories
- Reorder custom submenu item
- How do I fix this error: Warning: invalid argument supplied for foreach()?
- Can initial focus be set to search field in WordPress Media Library?
- How to wrap admin menus and menu headers in additional divs without modifying the WordPress core?
- wp-admin – save options without refreshing?
- Admin pages have no content
- Removing admin bar from wordpress dashboard
- Hide pages depending on role
- How do you modify CSS files via admin panel?
- remove plugin admin menu in wordpress without installing plugin in v3.8.1
- How to put placeholder text in the main post input area?
- how to only add a top-level admin menu without it creating a sub-level-menu
- Cannot log into WordPress Dashboard after removing/adding .htaccess
- Custom WordPress Dashboard for Specific user role
- SSL Partially breaking admin panel and elementor
- Show Welcome Panel on Dashboard for every user
- Sort wp_nav_menu() by menu order
- Remove query var on admin pages when ‘Save changes’ pressed
- Change top level menu item to point to custom submenu item
- What is the practical difference between is_admin() and is_blog_admin()?
- How to hide wordpress default description box?
- I want to disable login of admin (/wp-admin) with email and make it accessible only with username
- How to make the front-end RTL without changing the admin panel language?
- wrapping ‘rest_api_init’ in ‘is_admin()’ function
- Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
- Wp-admin is giving me an error “Sorry, you are not allowed to access this page.”. I do have access to the wp-admin besides the dashboard itself
- WP-Admin shows (1) update but there is no update for plugin, theme or WordPress
- Add menu option to “New Post” menu in admin bar
- White screen of death in Dashboard after clean installation
- Remove bulk option row
- Admin menu in front-end
- How can I replace dashboard.css and dashboard.min.css (not add new css)
- How to remove menu installed in wp-admin by a theme? [closed]
- WP admin user search doesn’t return all users
- can not access wp-admin after migrating to openshift
- WP admin broken. Not saving catgories or adding categories to menu
- 500 internal server error on wp-admin only
- How do you force the wordpress dashboard to be 1 coulmn by default?
- How to replace “Password Protected” text with icon in Admin
- How to remove dashboard access (wp-admin) for author but not disable the capabilities?
- always by default show welcome panel in the dashboard
- Dashboard Widget CSS
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- how can I change the font on Edit Post area (admin dashboard)
- Backend Checkboxes working – but not visual?
- External HTTP API calls slowing down WordPress admin [closed]
- Move WooCommerce menu entries to top of dashboard
- Disable Auto-Expanding Menu in WordPress Admin Menus
- Change users.php WP_User_Query
- How can I control which plugins run in the dashboard?
- Admin menu success message
- Change maxlength of link_description in dashbord link section?
- How can I put content before my custom post type default pages?
- 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
- Redirect from wp-admin back to page
- Need Help Regarding Menu Magement in admin
- Remove menu item dashboard for a unique user
- 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
- Customizing label/title output of admin nav_menu selecter
- Getting 404 page not found error while trying to access add new plugin / themes
- Create custom page and custom menu
- Launch wordpress site to local computer from live website backed-up
- All of my WordPress sites have Bold Open Sans
- Add custom fields to specific menus
- Override WordPress Core File?
- How can I have an admin only non-dashboard page in my WordPress plugin
- Creating an custom admin page from scratch