Use new-content
:
function make_parent_node($wp_admin_bar) {
$args = array(
'id' => 'test1234', // id of the existing child node (New > Post)
'title' => 'test', // alter the title of existing node
'parent' => 'new-content', // set parent to false to make it a top level (parent) node
'href' => admin_url('admin.php?page=enter_timesheet')
);
$wp_admin_bar->add_node($args);
}
it will show at the bottom:
you can see the ID
of the parent node
in the HTML if you dont want to dig in the core files:
they will be like wp-admin-bar-{ID-name}
Related Posts:
- How to prevent parent admin page from appearring as a child admin page
- meta box on new admin page
- Custom admin menu order fails if slugs are complicated
- How do I Enqueue styles/scripts on Certain /wp-admin Pages?
- Changing Admin Menu Labels
- Is there ANY way to remove comments function and section totally?
- do_shortcode() within Admin Page
- Add “external” link to admin menu in the backend
- How to add custom submenu links in wp-admin menus?
- Edit specific nodes in WP_Admin_Bar
- How to add notification bubble for my custom admin menu page
- How to create sub menu with a URL parameter?
- Adding a menu item in the admin bar
- How to remove items from +New admin menu?
- Reorder custom submenu item
- Make sub menu items a main link in the admin menu using fuctions.php
- Add column to pages table
- Admin account only shows Profile and Dashboard with no activity
- How to wrap admin menus and menu headers in additional divs without modifying the WordPress core?
- difference between add_object_page and add_menu_page
- How to disable admin flyout menus?
- remove plugin admin menu in wordpress without installing plugin in v3.8.1
- Rename W3 Total Cache admin menu
- Remove query var on admin pages when ‘Save changes’ pressed
- Associating custom submenu item with post type of top level menu item
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- Remove All in One Pack from the admin bar
- Cannot find an OLD Gravity Form on an OLD Word Press site [closed]
- wrapping ‘rest_api_init’ in ‘is_admin()’ function
- Add column to pages table
- Admin menu in front-end
- Remove or move admin submenus under a new menu
- Dynamic admin submenu
- How to get specific page screen ID
- Removing Dashboard Menu Items Through The Database
- WordPress Side Menu Admin Panel Default Order numbers List?
- load-{$page hook} and returned parameter
- Hide admin menu on update_option
- How to hide Admin Tabs? [duplicate]
- Making Comments, a sub_menu in admin menu
- Admin top level menu, pointing to an external url
- How to break line / add to ADMIN menu
- Creating custom admin panel pages without making a plugin?
- Change users.php WP_User_Query
- How can I control which plugins run in the dashboard?
- how to stop wordpress admin menu from scrolling with page
- Trying to create a page as a menu item in the admin while keeping the admen panel visible
- do_shortcode() within Admin Page
- WordPress Admin Panel Left Sidebar No showing on Post create page
- Weird white space in admin area
- Redirect from wp-admin back to page
- only last option from theme options is being saved to the DB
- How to move “Collapse Menu” to top of admin bar?
- Add item to admin panel – w/o plugin & theme
- Appearance -> Menus doesn’t show
- restrict admin panel sections to users
- 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
- Disable flyout (popup) menus in backend
- Remove Theme menu link from Admin Panel
- Remove capability to interact with a page
- Redirection to external site on admin
- Move Custom Taxonomy Menu to Top Level Admin Menu
- get_current_screen() does not return parent_file
- Removing an admin page added by a 3rd party plugin. Gravity forms in this example
- Remove “From computer” media tab for posts with existing attachments?
- Upgrade to SSL Breaks Admin Dashboard
- Disable slow media queries?
- Admin pages have no content
- .htaccess rewrite rule for removing .php extension with exception of wp login and wp-admin
- Too many datadabse connections – upper ceiling mysql
- I can’t access my admin page after changing main url
- add_menu_page() with function inside a class [duplicate]
- Why add_menu_page adds admin.php and how to remove it?
- From 403 error to 500 internal server error
- wp_comments table really big casuing /wp-admin/edit-comments.php to slowly load
- White screen of death on admin and other dashboard pages
- TinyMCE strips breaks inside editor
- /wp-admin/ doesn’t work but /admin/ does
- Why can I log into wp-login.php and not wp-admin.php?
- Unable to properly login
- Is there a simple way to set wordpress site files back to out of the box?
- Dashboard : remove Safari navigator message
- Contextual help in wp-admin for non admins
- How to add text editor in plugin menu?
- Step by step guide for new users on how to post content?
- Cannot log in to WordPress admin or change password
- 403 Error when using save buttons
- Avoid executing a function (redirect) if I’m in the admin area
- Wp-admin loguts me. When sign with Wp_singon
- sharing wp-include – wp-admin on same installation
- admin_print_styles incuding $_SERVER[‘DOCUMENT_ROOT’]
- Change height of Add New Post input box
- Unable to access my plugins [closed]
- Can admin-ajax.php be used for spam purposes? And if yes, how to prevent that?
- Redirecting the user to the admin table area after publishing a post, getting an invalid response error?
- How can you change the admin dashboard URL without symlinking?
- Degraded WordPress admin dashboard performance [closed]
- WordPress Localhost migration issue