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.
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
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).
I suggest the Capability Manager plugin, which is very simple to use.
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.