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 want to add an user as an Author to my blog, so that he can publish posts. But i don't want him to be able to view all the (unapproved) comments in the admin interface.

Is there any code snippet / plugin that can do what i want ?

I tried plugins like Role Scoper and Members. Role Scoper is too complicated i don't even know where to start. Members can only edit the basic wordpress access for roles.

share|improve this question
add comment

4 Answers

I came here looking for the same answer, and then elsewhere came across the Advanced Access Manager -- it does exactly what the OP requested (and what I was looking for).

share|improve this answer
add comment

I suggest the Capability Manager plugin, which is very simple to use.

share|improve this answer
add comment

you can go to wp-admin folder -> menu.php and look for something like this

$menu[25] = array( sprintf( __('Comments %s')....

then add this condition around this line

global $current_user; if($current_user->user_level==10){the line should be here}

this way no one can see the comments except the admin.

share|improve this answer
    
Modifying core WP files is always a bad idea. Core files should be left unaltered in order to avoid functionality loss upon WP ugrades. –  mike23 Jul 26 '11 at 10:42
    
thank you for this important info. i'll try to be away from that . but i still have this problem , the author can see all comments but he can edit only his comments .. no need to show him other comments ! your plugin is very nice but it doesn't help me with that ... thank you –  majed Jul 27 '11 at 22:10
add comment

For a user to be able to see the list of other users in wp-admin, he or she needs the capability list_users, to be able to edit existing profiles, he or she needs edit_users, to add new ones add_users and to delete old ones delete_users.

For managing a site with multiple specific user roles that need to have certain capabilities and not to have others, I highly recommend using a mixture of two plugins:

Adminimize gives you control over what part of the admin interface is shown to what role

Members lets you edit the capabilities of a specific role and add new roles as needed

share|improve this answer
    
Erm, Adminimize only does a part of what I aim to do. When I log in as an authors, it hides the comment section in the admin interface, but does not do the authorization part, i.e. restricting me from actually viewing the comments. I can get to the comments by clicking on "View all comments" in the dashboard, or by typing manually /wp-admin/edit-comments.php into browser. –  Lamnk Jul 2 '11 at 14:28
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.