I'm using an events calendar plug-in that I want to give subscribers access to. It has the following line of code that adds a menu item under Dashboard for admin users:
add_action('admin_menu', 'ManagementInit_071181');
How can setup the subscriber menu to see this as well. How about the other levels of users?
Usually you have to use something like the Role Manager plugin for something like that.
Find the link to that plugin at the bottom of Roles and Capabilities
jasonbenesch
Member
Posted 5 years ago #
You are looking at the wrong action...
Check out this page:
http://codex.wordpress.org/Adding_Administration_Menus
add_menu_page(page_title, menu_title, access_level/capability, file, [function]);
That is what you need to find.
jasonbenesch
Member
Posted 5 years ago #
Then edit the access_level/capability and make it lower, like 2.
Firstly, I don't want to change the permissions assigned to the roles. Second, I'm not trying to add a menu for the administrator.
I have the roles plugin installed but I don't see how that will allow me to add a menu for subscribers...
jasonbenesch
Member
Posted 5 years ago #
Isn't there already a menu for the admin?
Yes, but I want the menu for the subscriber.