Is there a way to move the links such as Add New Appearance Comments into one menu
Leave a Reply
You must be logged in to post a comment.
Is there a way to move the links such as Add New Appearance Comments into one menu
You must be logged in to post a comment.
Unset
Here’s an example of how to unset the comments link if the default status is ‘closed’ (offers 2 different approaches).
You can use
remove_action
calls for any of the following (/wp-includes/class.admin-bar.php – line 182 – 192) to unset the menu items:Set and re-order
Add the following calls to your
functions.php
file after unsetting the items. The integer at the end of everyadd_action
call is the new “order”.Add a single item & sub menu item
You can also use the
add_admin_bar_menus
hook to add items to your admin bar.I can’t think of how to make this guide more complete, but anybody can feel free to edit my answer and add everything that could be useful.
It is not possible to “move” – you must unset the item and add new to your structure in the Admin Bar. See the link from the answer on Rays comment.