WordPress ToolBar Customization

Project: WordPress Admin Bar Custom Menu Items

The project poster (cstoudt) wanted to add custom menu to their WordPress Admin Bar.

Note: The correct term is ToolBar (not Admin Bar). The Toolbar was added in Version 3.1 as Admin Bar and in Version 3.3 it was replaced by the Toolbar.

The following is an screenshot of the project description posted on freelancer.com.

I decided to implement administration functions of the menu with WordPress native menu editor. E.g. One can add/edit menu items as though it is an ordinary WordPress menu. But this menu will be displayed on WordPress Toolbar.

The challenge was hidden in this project. Menu items were dependent of the membership level being visited. i.e. different menu for different membership levels. Membership management was done by another plugin. I was able to successfully satisfy this requirement too.

I was able to hook into the proper point of WordPress execution and inject the new menu to WordPress Toolbar. I was able to complete the project successfully.

The following is the review by cstoudt for the correct interpretation and implementation of his needs for this project.