groucho75 / alo-easymail

ALO EasyMail Newsletter, a newsletter plugin for WordPress.
http://wordpress.org/plugins/alo-easymail/
GNU General Public License v2.0
12 stars 19 forks source link

Why does the menu appear both in the admin bar and in the dashboard? #10

Open raphaelh opened 8 years ago

raphaelh commented 8 years ago

Why does the menu appear both in the admin bar and in the dashboard?

One is in functions/alo-easymail-dashboard.php line 346

and the onther one in alo-easymail-admin-options.php line 107

Also, one has a submenu named "Options" and the other one has a submenu named "Settings"

groucho75 commented 8 years ago

The menu appears in admin bar and in dashboard side menu, of course. I wanted to make easy the access to plugin pages :) I can remove the one in admin bar add the following line in your functions.php:

remove_action( 'admin_bar_menu', 'alo_em_add_menu_toolbar', 45 );

I'll change the admin bar submenu from Options to Settings, thanks for the remark.

jeffmcneill commented 8 years ago

Would like to change this issue into a Feature Request to have a checkbox in settings to toggle the Admin Bar menu item on/off.