How do I allow a specific Role in WordPress 3+ to only see certain plugins?

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,

Read More

Michael

Related posts

Leave a Reply

4 comments

  1. 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