Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

share|improve this question

migrated from stackoverflow.com May 3 '11 at 15:49

This question came from our site for professional and enthusiast programmers.

    
Are you talking about seeing them on the plugin page (the list of installed plugins), or about the extra admin pages that plugins can create? –  Jan Fabry May 4 '11 at 14:41
add comment

4 Answers

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

share|improve this answer
add comment

I think you won't find the functionality you are searching for in the base install of Wordpress. The Role Scoper plugin enables to define more specific rolesets that are user and group based

share|improve this answer
    
Ok, I will give it a try. Thank you for the advice. –  Michael Sablatura May 3 '11 at 14:30
    
Role Scoper is the best one for Specific Roles... –  Ramkumar Jun 18 '11 at 7:22
add comment

I was going to suggest the Members plugin by Justin Tadlock, but with that one it's also difficult to show some plugins and others not. Perhaps this article (from "Removing Menu Items") can help you on your way a bit further?

share|improve this answer
add comment

Not sure if any of these answers have satisfied your question, but another plugin for adjusting the plugins certain user levels can see is User Role Editor.

share|improve this answer
    
Does this plugin enable changing user authorization per plugin? From the screen shots it doesn't seem so, and this is what is required by the Original Poster –  Lea Cohen May 19 '11 at 7:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.