[wp-trac] [WordPress Trac] #19380: There is no way to specify placement of a new menu item in the Admin Bar
WordPress Trac
wp-trac at lists.automattic.com
Mon Nov 28 14:58:49 UTC 2011
#19380: There is no way to specify placement of a new menu item in the Admin Bar
--------------------------+------------------------------
Reporter: willshouse | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Admin Bar | Version: 3.3
Severity: minor | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by linuxologos):
If that's what you're talking about, WP_Admin_Bar::add_menus does use
priorities for default menu items. Someone could use
{{{add_action( 'admin_bar_menu', 'my_menu_item', 1111 )}}}
to get his item appear where he wants.
http://core.trac.wordpress.org/browser/trunk/wp-includes/class-wp-admin-
bar.php#L295
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19380#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list