As part of their ongoing series, WPEngineer has published a cool post that explains how to add new menus to the admin bar coming in WordPress 3.1. In the example, Frank adds a Codex Search button to the admin bar which is pretty convenient! He covers the function add_menu() and it’s various parameters as well. In the comments of that post however, Latz brings up an interesting point.
Oh great, now every plugin will put a menu in the admin bar, Next stop: a plugin preventing others from cluttering the admin bar.
While it’s pretty funny to think about the admin bar containing menus for all sorts of different plugins, it’s a potential problem that users may have to deal with in the future. Hopefully, plugin authors are diligent with not adding a menu to their options page as part of the default package of a plugin. For certain plugins, the idea works well but not for all of them.
So while this is a neat little tutorial on how to add menus to the admin bar, are you worried that plugin developers may take this too far?