WordPress uses a concept of Roles, designed to give the site owner the ability to control what users can and cannot do within the site. Each role is allowed to perform a set of tasks called Capabilities.

learn more… | top users | synonyms (1)

3
votes
3answers
2k views

How to let contributors to create a new revision(draft) editing their published posts

I'm using a custom post type to let contributors have a personal page on the site. Any time a user registers to my site a script creates a custom type post that has the registering user as author. To ...
1
vote
1answer
1k views

Define new user capability for custom post types?

If I create a custom post type and want to create custom capabilities for that, how do I do this? For example, I want to let my Editors to edit and create and delete posts and pages, but not the ...
0
votes
1answer
1k views

Remove capability from specific user

I'm on Wordpress 3.0 and I can't seem to remove a capability from a specific user by the means provided here: http://www.garyc40.com/2010/04/ultimate-guide-to-roles-and-capabilities/ Also, what hook ...
-2
votes
2answers
789 views

I don't have permission to save the theme options I created myself?

I created an option panel following a tutorial. But each time I try to save the settings I get the following: You do not have sufficient permissions to access this page. Any suggestions to fix ...
3
votes
1answer
5k views

How to assign multiple roles for capabilities array withini register_taxonomy function?

I am not sure how to add multiple capabilities to 'assign_terms' capability. My code is below, notice the capabilities array within the register_taxonomy function /* Registers taxonomies. */ ...
0
votes
1answer
1k views

Menu page with minimum capability as 'Subscriber' doesn't allow 'Admin' to access it?

I've added a separate menu page (an object page) with minimum access level required as 'Subscriber'. I'm doing this because I'm registering new users and they'll be 'Subscribers' with an extra ...
1
vote
2answers
3k views

Allow Users Access to Custom Post Type Only

I am in a similar situation to this person, only I need a bit more hand-holding. I don't have a good understanding of php but can cut and paste code with the best of them. I have Justin Tadlock's ...
0
votes
2answers
2k views

User capability of create page/new page

I am working with the Role and Capabilities API for the first time today and making use of the the excellent Members plugin. Having tinkered around for some time I notice that the "edit pages" ...
2
votes
2answers
1k views

What action should I hook into when adding roles and capabilities?

I'm going to be using add_role() and $role->add_cap() to set up a new custom role and attach a new capability to existing roles. I'm wondering where the best place to do this is? Obviously I can do ...
0
votes
2answers
726 views

Menu capability in Wordpress

Is it possible to specify two usergroups (e.g. admins and editors) into the admin menu capability field ? I tried the following but it doesnt work: add_submenu_page( 'my-top-level-handle', ...
5
votes
2answers
9k views

How to add a Capability to a User Role?

I am managing a Wordpress network and would like to add the unfiltered_html user capability to the already predefined user role of Admin. In a standard installation of Wordpress the Admin account ...
0
votes
1answer
496 views

Custom Taxonomies Cababilities

Since 3.1 I've had an issue with custom taxonomies for a site. it seems that my user (admin level) can't edit the taxonomies from any screen. I see them on under the custom post type and can see them ...
7
votes
5answers
5k views

Remove Ability for Other Users to View Administrator in User List?

(Moderator's note: Original title was "Remove Admin from User Menu") I have created a client administrator role which is essentially an Editor with ability to add/remove users. The article "Editor ...
1
vote
1answer
344 views

Filter list of rules based on a capability

I'm trying to get a list of roles and filter them by a specific capability (custom). I've ran across this post, but I'd like to filter the roles by whether they're capable to, say, edit_post. -Zack
1
vote
1answer
733 views

Theme option editing capability problems

I've setup some theme options using this helpful guide as a template. I want to give my editors the option to update these theme options, so I granted the edit_theme_options capability as mentioned ...
1
vote
1answer
471 views

Capability for allowing user to post own comments without moderation

I work at a radio station that has several WP user roles -- for simplicity sake, let's say Admin, Programmer, Subscriber, in decreasing order of ability. Currently, Admin users need to approve ...
3
votes
1answer
2k views

How to check user role without using current_user_can()

I am filtering the map_meta_cap() function, which is called from $user->has_cap (which is called from current_user_can()). I only want my filter to execute if the current user is an administrator, so ...
1
vote
3answers
282 views

Using author_can() on custom post types in WordPress

I'm trying to conditionally display some content in a theme using custom roles and capabilities. First, I define a custom role: add_role('free_vendor', 'Free Vendor Listing', array('read', ...
0
votes
1answer
886 views

Not able to give editors acess to new admin menu item

I'm adding an extra menu item in admin menu by using add_menu_page. add_menu_page('Calendar', 'Calendar', 'edit_posts', 'wp-eventcal/eventcal-manager.php'); Still my editors do not see the menu ...
0
votes
2answers
329 views

How to determine which capability to use?

For example, I want to use add_menu_page() function to add a menu item to the dashboard. To control which users will be able to access it, I'm supposed to use capabilities... <?php add_menu_page( ...
2
votes
3answers
549 views

What are the differences in capabilities between the super-administrator and administrator?

What are the capabilities that a super-administrator has that an administrator does not have? The codex page on user capabilities does not have a list of capabilities of the super-admin. It lists ...
3
votes
1answer
458 views

Roles & capabilities GUI that does not create separate table

After reviewing plugins that deal with user roles and capabilities I concluded that I might be better off just hardcoding my settings into my functions.php file. This actually worked out well for me ...
18
votes
2answers
8k views

Editor can create any new user except administrator

I have set up a WordPress site for a client. The client has the Editor role, however I have installed the Members plugin and given the client the capability to add new users to the WP admin. This is ...
4
votes
1answer
147 views

What exactly is WordPress?

These are some very basic questions, so I apologize for asking them, but it's hard to understand exactly how some things work without spending dozens of hours experimenting with them. I'm more than ...
5
votes
1answer
447 views

Disallowing Users of a Custom Role from Deleting or Adding Administrators?

(Moderator's note: The original title was "Custom User Role Restrictions") A project I am working on requires me to create two new user roles - one for the owner of the website and the other for ...
4
votes
1answer
369 views

Can I make user role that can only access a certian content type?

I would like make a custom role that can only access a custom content type that I'm going to be creating in the admin. Is that possible and does any know of any examples or tutorias that I should ...
0
votes
4answers
698 views

Restricted registrations or removing the ability to edit your password/email

I'm developing a WP site that lists expensive properties (villas, penthouses, etc) for rent. My client has an agreement with certain schools to list some cheap properties exclusively for their ...
5
votes
2answers
5k views

Defining capabilities for custom post type

On creation of a custom post type I'm trying to define capabilities but it's not working. What's wrong with this code? $args = array( 'labels' => $labels, 'public' => true, ...
3
votes
1answer
826 views

Allow user to Edit Posts but not Add New?

For one of my custom post types I want a specific user to be able to edit existing posts created by admin but not be able to Add New posts. How can this be done? If I define the user role as not ...
1
vote
2answers
789 views

Applying roles to an admin sub-menu (eg Appearance -> Menus)

Long time lurker, but first time poster. I've searched Google extensively and just can't seem to come up with an answer on this problem. I use Justin Tadlock's excellent 'Members' plugin for roles ...
14
votes
2answers
7k views

Getting a List of Currently Available Roles on a WordPress Site?

When writing WordPress plugins there is often a need to set up options for which roles on the site have access to certain functionality or content. To do this a plugin dev needs to fetch the list of ...