add_action admin_menu viewable by all users?
-
I’m trying to build a avatar editing plugin, but I’ve hit a roadblock. I’ve been researching how to do this for at least a few hours and have found nothing. I want to add a new tab in the menu (the backend, after you log in) that shows the current avatar etc. The only problem is this:
add_action(‘admin_menu’, ‘addmyplugintoasubmenu’);
only works with admin users. I need the tab to show up for non-admin users as well (editors and authors). I tried installing the role modification plugin, but adding a capability does nothing than just take a string. I seriously can’t figure out why a plugin can only add tabs to admin users only. Basically I’m asking if there’s this:
add_action(‘admin_menu’, ‘addmyplugintoasubmenu’);
but for more than just admin users.
- The topic ‘add_action admin_menu viewable by all users?’ is closed to new replies.