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
3answers
478 views

Capability to edit own posts and not others

What is the capability that let users to edit their own posts and not others? I am trying to enable the post authors to avail a plugin function only on the posts they own. The permission to access ...
0
votes
1answer
18 views

current_user_can( 'edit_post', $post_id ) does not work for contributer but for administrator

I have a custom post type named ÷project÷ which has 'capability_type' => 'post' while registering using ÷register_post_type÷. in my theme files and also functions.php file, I have situations where ...
0
votes
0answers
23 views

Front-end Posting: Allowing user to view/edit their pending post

So, I have a front end set up. I can write and submit a post. I have a list of my published and pending posts, which I can view and edit as an admin. I created a subscriber, but 'he' cannot access ...
1
vote
2answers
16 views

Restricted user capabilities cannot add image

I have restricted a users capabilities $capabilities = array( 'delete_posts' => true, 'delete_published_posts' => true, 'edit_posts' => true, ...
0
votes
0answers
7 views

allow non-admin to change plugin RFWBS Slider [closed]

I am trying to allow non-admins access to the settings page of the "Responsive Full Width Slider" plugin. https://wordpress.org/plugins/responsive-full-width-background-slider/ this advice seemed not ...
0
votes
0answers
21 views

get user role value as a string from wp usermeta table into custom script

Just came accross while retriving wp_capabilities from wp_usermeta table, this returns serialize output a:1:{s:13:"administrator";b:1;} When i unserialized, it gives an array Array ( ...
2
votes
1answer
36 views

Shold I manually add 'cap' to admin role ?

I've created a role: $role = add_role( 'role', 'role', array('read' => true) ); and so created a cap: $role->add_cap( 'cap' ); after this I'd created a submenu in admin menu with 'cap' as ...
0
votes
0answers
20 views

Adapt capabilities to specific users “IF”

I have a very specific issue with my Wordpress website. I use custom fields to assign some users to "group managers" and would like to prevent other "group managers" to change this custom field. ...
0
votes
0answers
4 views

Permissions links manager wordpress

I want to let the "Subscriber" users to add\edit\delete links but I don't want that the user could delete other user's links. I know the "manage_links" capability but I can's "split" this to ...
1
vote
0answers
11 views

Where are $current_user->allcaps set?

I recently found a problem with WP in which even the admin has no permission to get to anything on /wp-admin/. Oddly enough, when I compared the $current_user->allcaps to those on a normal site, I ...
0
votes
2answers
33 views

same user role or copy the user role to be same as the other role

how do you make the user role "contributor" to be same as the user role "seller" by using functions.php I've tried user role editor, but it seems to be the dokan multivendor plugin has set only into ...
4
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
34 views

Custom post type submenu capabilities - custom plugin

I'm trying to add new custom capability so I can hide custom post type from non admins. In my custom post type I have some custom taxonomies and then 2 submenus. The administrator can see the menu of ...
0
votes
1answer
20 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
29 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
1answer
34 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
21 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
0answers
19 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
41 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
20 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
18 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
1answer
32 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. ...
8
votes
4answers
7k 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 ...
0
votes
0answers
22 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 ) ) {...} ...
1
vote
1answer
41 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 ...
11
votes
3answers
7k views

Is there way to rename user role name without plugin?

Is there anyway to rename a user role name via hook, instead of using plugin? Edit For example, administrator » owner
0
votes
1answer
38 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" ...
1
vote
1answer
45 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
21 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 ...
9
votes
5answers
5k views

WordPress SEO by Yoast: Hide Meta boxes in posts for non-admins

I have multi-author website and I am not very comfortable for allowing all members to enter SEO details in the posts they are publishing. I would like this would be visible only to Administrator of ...
0
votes
1answer
577 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 ...
0
votes
1answer
30 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
61 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 ...
2
votes
1answer
181 views

Is there a simple way to manage capabilities per user?

I have a WordPress-Site where some people (non-expert clients) need to create/manage users. The site uses multiple custom post types and each user is assigned permissions for one or several of those ...
0
votes
5answers
6k views

How can I restore admin capabilities?

So yeah, I'm a genius. I managed delete all my admin capabilities (thank you very much Membership plugin). I could restore them, ...if I had admin access, lol. Anywhoo, how can I give all my ...
0
votes
1answer
17 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 ...
6
votes
5answers
4k views

Select subscriber as author of post in admin panel?

I want to be able to select a subscriber an author of a post in the admin so it displays their name as having written the post, but I do not want to give them any additional privileges (if they login ...
0
votes
1answer
30 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
60 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> ...
2
votes
1answer
78 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
182 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. ...
2
votes
1answer
103 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 ...
9
votes
1answer
4k views

How to create a clone role in wordpress

How to create new role with same capabilities of existing role. Eg: I would like to create a new role with same capabilities of administrator or editor and so on..
0
votes
1answer
25 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
45 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
2answers
115 views

Restrict editing of a custom post type based on status and user capabilities

I have a custom post type guest_blog registered with 'capability_type' => 'guest_blog' and 'map_meta_cap' => true. I want to restrict users that do not have publish_guest_blogs capability from ...
0
votes
0answers
497 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
1answer
660 views

Assigning multiple or additional capabilities to specific users or how to create additional roles like bbpress roles?

even though I think I understand the hierarchy of roles in WordPress, I never really bothered creating my own user roles or custom capabilities. What I need to achieve is to assign a few capabilities ...
0
votes
0answers
74 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 ...