I am familiar with user roles and how to change them within WordPress 3+, My problem is when I disable a user from being able to view plugins, all plugins are disabled from view. How do I let them see only specific plugins?

Thanks in Advance,

Michael

4 Answers
4

Add your plugin with a capability argument.

So, if your plugin entry point is an admin page menu, you can use something like this:

add_menu_page(page_title, menu_title, capability, handle, [function], [icon_url])

You can set the “capability” to “upload_files”. that function sees that capability argument as “The minimum capability required to display and use this menu page”.

Maybe a good capability to use is publish_pages?

for more info:

http://codex.wordpress.org/Function_Reference/add_menu_page
http://codex.wordpress.org/Roles_and_Capabilities

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *