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)

0
votes
1answer
10 views

How to get a users list by who created them?

I have two users with the capability to create other users. But their roles are not same. Tom - Role is Administrator Jackie - Role is CMS Manger (a custom created role) Both have capability ...
2
votes
1answer
12 views

Let new user role to 'edit_others_posts' of other user role, not of its own type

In my system, I'm making two new roles: Third Party (TP) (lesser privileges) Data Entry Operator (DEO) (powerful over Third Party - but not of its own group) My CPT 'capabilities' parameter is ...
0
votes
0answers
17 views

Custom role with add post and event capabilities

I'd like to create a custom role for an author on a site that we made. I can create one with only the add/edit/delete posts capabilities but I can't figure out how to give him the add/edit/delete ...
0
votes
1answer
23 views

Prevent author role from editing all posts in custom post type?

I thought the Author role was only allowed to edit posts created by that author. That works in Posts and Pages, but I created a custom post type and the author can edit ALL posts in that post type. Do ...
0
votes
0answers
10 views

Disappearing menu items in dashboard once the CPT post get published by Admin

I have created a custom post type, say, 'Challenge'. I have also created some new user roles, on of the user role is 'evaluator', this role has capabilities some what like default 'Contributor'. The ...
2
votes
0answers
34 views

Allowing custom role access to custom post type in back end

So I'm having some issues with this and I can't see why. I just need a custom role that can access the blog in the back end. I've added a new post type with a Capability type of blog and a new user ...
0
votes
0answers
13 views

Role capability delete multiple post type posts doesn't work

I am making a new role called "sales" where I add capabilities to, so the sales people only can read, edit and delete leads in the admin panel. Everything works fine, except that I cannot select ...
0
votes
0answers
14 views

How to Restrict publish post capability of Editor role for a Custom Post Type?

In a project, I have a Custom Post type, In this post type, every one can add Posts, From Contributor to Admin, But All the posts apart from Admin, should not be published. All other Posts including ...
0
votes
0answers
6 views

current_user_can( 'delete_post', $post->ID ) is a bug?

Since the last couple of updates, the link for putting the page/post has vanished from row actions. // l761, class-posts-list-table.php if ( current_user_can( 'delete_post', $post->ID ) ) {...} ...
0
votes
1answer
25 views

Subscriber role - blank page

I did a fresh install of WP4.2 today, but after playing for a while with setting up a custom user roles I realized that the built-in subscriber role is returning blank page instead of the dashboard. ...
1
vote
1answer
30 views

Custom Post Type Capabilities — Enable Edit, Disable Create and Delete

I'm trying to configure capabilities for a custom post type. I want to enable editing, but disable creating and deleting. create_posts cannot be set to false unless delete_posts is also false, but it ...
0
votes
1answer
35 views

Prevent author role from editing others posts

I have created a custom post type "Extension" and a role "Extension Author". A user in this role should only be able to edit his/her own extensions. As it is now the user can click "edit extension" ...
0
votes
1answer
17 views

Plugin page and capabilities

i´am developing my own WP plugin with custom functions and i would like to show the new submenu in the standard admin panel for everyone, who logs in. My code: $capa = 'administrator' or 'author' or ...
1
vote
1answer
32 views

Stop users of author role from editing already pending posts

I want to stop authors from being able to constantly edit posts that are already pending review from editors. To clarify; I already have code in my theme that sets live posts to pending and that ...
0
votes
1answer
27 views

Manage Roles and Capabilities on Multi-site

I am trying to enable some features for Subscriber user role in a eCommerce theme where originally had be set for Admin role and I like to modify that. I tried AAM plugin but for this specific site ...
0
votes
2answers
59 views

Custom capabilities not reflecting on admin panel

I've made some custom post types, and some user roles. Each role has access to different custom post types. The thing is that edit_others_customposttypecapability, isn't working. I've tried logging ...
0
votes
0answers
14 views

Change user's capabilities at runtime

I've been tasked with limiting who can moderate comments based on a custom defined user field. We basically have a two tier "roles" system, one being the standard WordPress roles, the second being a a ...
0
votes
1answer
16 views

Unable to access custom plugin backend

So, I just created a new plugin and i've added capabilities, a new role, linked them all together, etc.. etc.. but for some reason I'm unable to access my own backend. Error message is the generic ...
0
votes
1answer
26 views

Hide menu theme location for certain capabilities?

I have 6 menu theme locations setup with "register_nav_menus" I would like editors to be able assign custom menus to 3 of those locations and keep the other 3 only available to administrators. How ...
0
votes
0answers
45 views

Translate in wp-login.php page

I'm trying to add a form for the user to register, to choose a role that can edit pages. The code I used is as follows: <?php function my_register_form() { global $wp_roles; ?> <p> ...
1
vote
1answer
50 views

Disable posts, only allow to edit existing pages, not create new ones (create_posts)

I am trying to limit a user role to only be able to edit existing pages, but not create new ones or do anything else like anything with posts. I have read this: Is there an existing capability to ...
6
votes
3answers
169 views

Capabilities Vs User Meta

What is the advantage of using capabilities instead of usermeta? For example a cap access_feature_x vs meta access_feature_x. I can use current_user_can() vs get_user_meta() on various checks. ...
0
votes
1answer
21 views

Custom capability for a single user

I have this complex scenario: 1) I'll have multiple admin users. 2) Only one admin can 'see_encrypted_pass' Now, I want to assign custom 'see_encrypted_pass' capability to only one admin (say, ...
0
votes
0answers
38 views

Add user role and add capability to view the plugin from that role

I have created a different user role. I want that role to view my plugin. I have tried adding the capabilities to that role. But it doesn't show up on their dashboard. What to do?
0
votes
0answers
352 views

Add Media Upload Capabilities Needed for Custom Role for non-Posts

I finally managed to update an old WP 3.3.1 site to WP 4.1 with few issues, but one unexpected change seems to have come about with relation to file uploads. In the WP 3.3.1 version of the plugin, I ...
0
votes
0answers
59 views

Restrict Users of Specific Role to One Page

I have created a custom role for some of the users of the site I am working on. Unfortunately the WP Capabilities ties edit_pages in with create pages so if I allow users of that role the capability ...
0
votes
0answers
14 views

site roles manage wordpress

Need three users: Admin, Coach, Participant - Participants are under a single coach. - Coaches control multiple participants - Admin sees everyone I have created these three users using add_role(). ...
0
votes
1answer
12 views

creating different edit screens for different roles

I have created a custom post type and custom role, created the proper capabilities and assigned them so the new role and see and edit their own ctp's entries... but I'd like to create a customized ...
0
votes
0answers
40 views

Allow Multisite admin to edit users

i am using wordpress multisite. and i was looking for solution to allow sites admin to edit users that belongs to their website. as i understand, i need to give this permission to site admin to edit ...
0
votes
1answer
62 views

add_role menu pages are not visible

I added a custom role this way: add_role( 'tabellenadmin', __( 'Tabellenadministrator' ), array( 'activate_plugins' => true, 'delete_others_pages' => true, 'delete_others_posts' ...
0
votes
1answer
29 views

What capabilities are assigned to unauthenticated users?

After reading the Roles and Capabilities article I can see that the Subscriber role has read capabilities only. What capabilities (if any) would be assigned to an unauthenticated user? i.e. a website ...
0
votes
3answers
105 views

current user can edit user?

I want to know if it is good practice to use: if ( current_user_can( 'edit_user', $user_id ) ) { // do something } because in Wordpress documentation a did not see this capability
1
vote
0answers
28 views

Usage of current_user_can()

I have a custom post type company, which has its own custom set of capabilities, including read_company, edit_companies, publish_companies, and delete_companies. In order to implement a role-based ...
0
votes
0answers
77 views

usage of get_post_type_capabilities()

I'm trying to list all capabilities assigned to a post type by making use of a Wordpress function get_post_type_capabilites(). Here's what Wordpress Codex explains: Function Reference/get post ...
0
votes
0answers
20 views

Capabilities of a Custom Post Type and et_post_type_capabilities()

I created a custom post type item, and gave it custom-named capabilities as below. function register_custom_post_types() { $args = array( 'labels' => array( 'name' => ...
0
votes
0answers
110 views

add_role user capability not working

I added a role this way: add_role( 'paar', __( 'Tanzpaar' ), array( 'add_users' => false, 'create_users' => false, 'delete_users' ...
2
votes
1answer
83 views

Author Role - Allow editing of Gallery images

Is it possible to give the 'Author' role the capability of editing image titles and captions on post's they have created ? I have a number of users set to 'Author' , but when i've tested it's not ...
0
votes
0answers
29 views

Users can only save their draft once before saving for revision

I use the Members Plugin and Custom Post Types. I created a role and want them to contribute posts (within this Custom Post Type musician) but don't publish them. Additionally I want to give the ...
0
votes
1answer
474 views

Get User Role by ID not working

I'm using the PHP code seen at the bottom of this post to get the user's role from user ID. It works, but fails if the user role has been changed after registering. I've been looking for ages trying ...
5
votes
1answer
535 views

Allow user to “edit_others_posts” to save only, not publish

I want to add a couple of editors that can edit_others_posts, but I do not want them to be able to publish others posts, only save the post by clicking on the Submit for Review button. How can I do ...
0
votes
1answer
60 views

Capability to edit own post, but not create new one

i can't find anywhere how can i forbid to create new item, but allow editing of posts which was assigned to user. Lets say in my system there is admin who creates some posts, then assigns some ...
0
votes
0answers
157 views

Authors cant upload images unless publish_page permissions are set

I have a custom post submit form from frontend so authors can submit articles and use the tinymce editor along with the media manager. The problem, only administrators and editors can upload from ...
0
votes
0answers
103 views

Hide unapproved comments on front end of wordpress

I used this post I modified it to hide rather than show to contributors unapproved comments. This goes for unapproved comments on the contributor's own posts. I also used Adminimize to hide comments ...
0
votes
0answers
16 views

Error opening in a admin panel [duplicate]

I have uninstall plugins and theme shall we are getting error in followinf code in capabilties.php in line 1158 if ( ! $post_type->map_meta_cap ) { $caps[] = ...
0
votes
0answers
22 views

Error in capabilities.php [duplicate]

I have uninstall plugin & themes shall we are getting the error in capabilties.php following error code if ( ! $post_type->map_meta_cap ) { $caps[] = $post_type->cap->$cap; // Prior to 3.1 we ...
0
votes
0answers
23 views

Trying to get property of non-object in capabilities.php in 3.9.2 [duplicate]

In my website corrupted the plugins or themes, so FTP this remove plugin or theme. In that case error are given about capabilities.php. So install new wordpress version 3.9.2 but in that also ...
0
votes
0answers
93 views

Using list_users give access to Users menu but not Role dropdown

I have user role that is the "Manager" of the e-commerce part of a site. I have given this user the capability, list_userso that they can access the "Users" page in Admin and add/change various ...
1
vote
0answers
40 views

“edit_published_posts” and “edit_other_post” issue

I need to modify a roles capabilities for post editing: User can modify his own post (publish status doesn't matter) User can modify others posts (only as long as they are not published) I played ...
1
vote
1answer
429 views

How can I modify the Capability needed to access a plugin's options?

I have the following 3 different Roles: Admin, Editor, and SEO. I have installed WordPress SEO by Yoast, and I want to get this: I don't want the editors to see the SEO options, because they only ...
0
votes
1answer
88 views

Custom Role can't trash Custom Post Type

I have a post type that I set up some capabilities for and I attached them to a new Role, however, the role can not trash them. I'm not sure why though. Here is the portion of my array for the ...