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?
- How do I Enqueue styles/scripts on Certain /wp-admin Pages?
- How to remove admin menu pages inserted by plugins?
- Is there ANY way to remove comments function and section totally?
- Changing the Order of Admin Menu Sections?
- Admin Page Redirect
- Disable dragging of meta boxes?
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to Change the Default Home Page for the WordPress Dashboard?
- How to remove screen options and help links in the admin area?
- Sort admin menu items
- Remove dashboard, use Pages tab as default
- Custom column for changing post status via ajax
- Add separator to admin submenu
- 3.3: How do you hide the new dashboard welcome panel?
- How to add a custom metabox to the Menu Management admin screen?
- How can I enable Google Analytics on a file download link?
- How to add custom submenu links in wp-admin menus?
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- Edit specific nodes in WP_Admin_Bar
- Is it OK to move admin menu items?
- 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?
- How to create sub menu with a URL parameter?
- Remove Pagination in Appearance -> Menus -> Categories
- Adding a menu item in the admin bar
- Reorder custom submenu item
- renaming an admin menu item with decimal array index number
- Copy my user account’s wp-admin dashboard layout to other users?
- Weird white space in admin area
- WordPress Dashboard add user password not working, etc
- Step by step guide for new users on how to post content?
- Accessing wordpress tool in local MAMP Site
- Redirect from wp-admin back to page
- How to create custom backend admin menu in different languages?
- How to log into WordPress via GET/POST
- How to move “Collapse Menu” to top of admin bar?
- Need Help Regarding Menu Magement in admin
- Appearance -> Menus doesn’t show
- How to remove Google fonts from wp-admin (Roboto) added by core
- restrict admin panel sections to users
- Trying to login to my site redirects me to the first page
- Remove menu item dashboard for a unique user
- How to display status messages in admin panel
- adding existing menu page on new customer user role
- Admin Login Checks
- Disable flyout (popup) menus in backend
- 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
- When installing wordpress through WP CLI mysite.com/admin not working
- Trying to list user and post information from (wp_includes/post.php ) causes Fatal error
- Remove capability to interact with a page
- Getting 404s in wp-admin after logged in
- Admin section showing CUSTOM Permalink structure thus resulting in permission error [closed]
- Unable to render Admin Notices
- 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
- All of my WordPress sites have Bold Open Sans
- Redirection to external site on admin
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
- 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
- Override WordPress Core File?
- How can you change the admin dashboard URL without symlinking?
- get_current_screen() does not return parent_file
- Import bootstrap 5 and bootstrap icons in wp-admin backend
- Admin utility classes?
- Administrator user cannot access dashboard after localwp import
- WP dashboard messed up
- How can I have an admin only non-dashboard page in my WordPress plugin