0
votes
0answers
4 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
15 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 ...
0
votes
1answer
29 views

How can I modify the Capability need 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
0answers
25 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 ...
2
votes
0answers
24 views

What's the difference between Role and Meta capabilities; When to use map_meta_cap() filter

I'm getting very confused about the following things: difference between Role and Meta capabilities, difference between Meta and Primitive capabilities, when to use map_meta_cap() filter. There ...
0
votes
1answer
14 views

Capabilities don't add

I've wrote this code. function wpo_install() { update_option( 'wpo_version', WPO_VERSION ); wpo_add_caps(); wpo_add_roles(); set_transient( '_wpo_activation_redirect', true ); } ...
0
votes
1answer
61 views

Add role and edit page capabilities

i've create a new user role and i want this user can edit page and use custom post type. For custom post type i've resolve but for the page not function. On backend the user can only see the page ...
0
votes
0answers
23 views

Custom User Roles Added When Plugin Network Activated and not on Individual Site

I wrote a quick plugin which creates a list of custom user roles and capabilities for each user role. The user roles are checked and added if not found upon plugin activation. When I network ...
2
votes
0answers
22 views

Capabilites not working [closed]

I created a custom post type: add_action( 'init', 'artwork_feature'); function artwork_feature() { register_post_type( 'artwork', array( 'labels' => array( 'name' => __( ...
1
vote
1answer
37 views

Restrict Capability of Administrator to Create, Edit and Delete Pages in Multisite

In my multisite installation, I need to restrict administrators from being able to create, edit, and delete pages. That is, I need all pages to be created/edited/deleted by superadmins while ...
0
votes
0answers
16 views

Add capability to role for all sites in network

We are running a multisite install. I want to add the capability to edit menus for contributors. I am doing that with this code: $role_object = get_role( 'contributor' ); $role_object->add_cap( ...
0
votes
1answer
57 views

Hide user fields based off capability

I'm struggling with this one. I am trying to hide 2 user profile fields for the current user. Only the admin or user with "edit_users" capability should be able to view/edit these fields. Code: ...
0
votes
0answers
77 views

How can I add Menu Page to specific user?

I've installed a plugin for my client called uTubeVideo, but he has a user role of editor so the option page of the plugin won't display for him. Initially, i thought I could fix this using the if( ...
0
votes
1answer
70 views

Author capabilities: Deleting comments on their own published posts

I know users that have role author can delete their own published posts. But if someone comments on one of their posts, does the post author have the capability to delete that comment?
2
votes
2answers
114 views

How can I prevent a writer from being able to edit an article that has been scheduled?

In the old WordPress that I had, the writer (a type of user that could not publish) was, after an article was schedule, unable to go back to the article and edit it. But now in WordPress 8.1 they (the ...
0
votes
1answer
35 views

Need to create admin user without capability to create user

I need to remove user related capabilities(such as 'create_users', 'add_user', 'list_users', etc...) of an admin user. I tested the code below in an 'init' method. global $current_user; ...
3
votes
1answer
66 views

How to Structure a New Role/Capability Scheme?

I have a situation where I need users to be flagged as "Instructors" on a site. That role should basically be whatever the user's current role is with the added capability to see comments from ...
0
votes
0answers
47 views

Granting Author the capability to access a submenu item under Tools

I need the Author role to have the capability to access a submenu item (a third party plugin item) under the Tools menu in the admin. By default WordPress grants capability to the Tools menu for only ...
2
votes
2answers
81 views

Allow user to Publish, but not Edit or Delete

I saw post Allow Content Author to Publish, But Not Edit or Delete but is not the same I need and I cannot ask there because of reputation ¬¬ I need an user that can publish any user's post but can't ...
2
votes
1answer
124 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
1answer
38 views

Remove specific administrator's capability

I've created two administrator users X and Y. And now I need to remove capability of 'edit_plugins' from user Y. I've searched and found, http://goo.gl/LttuvX $user = new WP_User( 'Y' ); ...
3
votes
1answer
51 views

How to not allow custom roles to edit published custom post types?

I have a WP site with a custom role (revisor) and a custom post type (events). What I would like to do is allow my revisors to add new events, but not edit existing. I'm already using the Members ...
1
vote
1answer
41 views

Ability to only view (not edit) other user's personal profile information

I have created 2 roles, Center and Student, for my WordPress website with different capabilities using members plugin. I want the student role users to be only able to view and edit their personal ...
0
votes
0answers
45 views

WordPress Custom Post Type Delete Permissions

We've been developing a site recently that is going to have a lot of users and varying levels of permissions for those users. For this we went with Role Scoper but it seems to have a few issues in ...
0
votes
0answers
62 views

Set permissions to view custom admin pages by Role, not Capability

When using add_submenu_page(), Is there a way of specifying a Role instead of a Capability? I have added a menu to the WP admin area which has 4x sub-menu pages. The level of access to three of these ...
0
votes
1answer
35 views

New Roles and Capabilities in WordPress

I am creating a new role in WordPress, and I would like it to be simlar to an 'author' role, except that this new role only allows 'working with' a specific category (in other words, it allows ...
0
votes
1answer
67 views

How to change a user role after registering in multisite?

New users who create their own blog in WP Multisite get administrator privilages after registration. However, I don't want them to have so many privilages. I know there is a way to change their role ...
0
votes
0answers
41 views

Compare revisions on pending posts doesn't work for authors and lower

I'm using map meta cap to allow extra permissions (edit/publish/edit_others/read_private/edit_private) if the user and post share a category. Comparing revisions doesn't work beyond the first ...
0
votes
1answer
248 views

allow edit of custom post type but not regular posts?

Is it possible to set the capabilities of a role to allow editing of a custom content type but not editing of the regular post types? If so, how would I go about doing that? Thanks!
0
votes
3answers
187 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
91 views

Authorize users for specific pages and/or categories

I am managing a Wordpress website for a local sports club, the navigation is something like this: home division archery soccer youth senior volleyball ... I want to enable the people in charge ...
0
votes
0answers
52 views

Capabilities for custom post type visible in backend but not working

In my plugin I have created a custom post type and defined capabilities for both the subscriber and the administrator role. When I go into the backend and look at the capabilities that are in the ...
0
votes
1answer
372 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 ...
2
votes
1answer
56 views

Users with custom roles can't read each other's comments

My site has a custom role ("coach") with its own set of capabilities (via map_meta_cap along with a few built-in roles). Each user is assigned a page on the site that they "own" and can edit (via a ...
0
votes
2answers
201 views

Editor role cannot save custom theme options

There's a few questions on this site referencing this issue and I've read them and applied the proposed solutions to no avail. I've made a very simple theme options page that appears for the Editor ...
0
votes
1answer
67 views

Is there a way of retrieving the core WP capabilities?

I've created a plugin that adds new capabilities & assigns them to both WP & core WP roles. I would like to remove these capabilities when the plugin is deactivated, but I need to check that ...
0
votes
2answers
106 views

Custom user roles for access to specific parts of the site

I need to create specific sections of my site which should only allow certain users to access them. So basically, I'll be having a staff section - if the user is a staff member, they'll see a link to ...
1
vote
1answer
741 views

How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?

The default taxonomy, category. By default, only those with the edit_posts capability can assign categories during post creation/editing. I have a role with very limited capabilities. I want to let ...
8
votes
4answers
994 views

How do I make a draft post accessible to everyone?

I have several unpublished posts in my Wordpress website and I am trying to make it accessible for normal users (who are not logged in) using the normal post slugs (site.com/post-here). I understand ...
3
votes
1answer
160 views

WordPress Capabilities: edit_user vs edit_users

The official documentation only mentions edit_users, but in the source I found many places are using edit_user, what is the difference? Are there any conventions for singular and plural capabilities? ...
4
votes
1answer
106 views

Allow authors to edit only certain users

I am trying to give my "authors" (who I have renamed "captains") the ability to access the user profile of their team members and only their team members. The teams are defined by a user-meta box ...
1
vote
1answer
121 views

map_meta_cap woes

I have created a custom post type and want it to behave like a page. Certain roles need to have access to it and not to posts or pages. So I created my custom post type with a capability-type and ...
1
vote
1answer
949 views

Reset default roles and capabilities

I've been having a difficult time adding custom post type capabilities to roles (Adding capabilities to default roles) and I suspect that my muddling around may have caused some problems. I also have ...
0
votes
1answer
101 views

how do I add role and capability after I create a new user

I have a simple requirement: 1. create a user 2. create a role for the user 3. add capability for the role First, create a new user $uid = wp_insert_user($userdata); Second & Third, create a ...
0
votes
4answers
3k views

what's the meaning of the field wp_capabilities in table wp_usermeta

I am new to wordpress, in table wp_usermeta I notice that we have a row meta_key meta_value wp_capabilities a:1:{s:13:"administrator";b:1;} First, what's the meaning of ...
1
vote
1answer
284 views

Remove wordpress author's capability to moderate comments on their own posts

WordPress authors have permission to edit others comments on their own post. How to disable this and still allow the authors to edit their published posts?
0
votes
1answer
173 views

Custom Capabilities for CPT and Problem with current_user_can()

I have setup a CPT with custom capabilities. add_action('init', 'fac_product_posttype_init'); function fac_product_posttype_init(){ $product_labels = array( ... ); $caps = array( ...
0
votes
1answer
501 views

Roles and Capabilities in Custom Post Types

Is there a way to create one role with one capability and apply it to some of the custom post types? What I am doing right now is ending up with applying capabilities to all of the posts.. creating ...
0
votes
0answers
107 views

Capability to read user's own draft post of CPT

I've got a custom role called 'Gym' and custom post type (CPT) called 'Story'. Every Gym user can create a draft of a story and view their own story drafts. My 'Story' CPT have got the following ...
2
votes
1answer
436 views

How can I have different groups of editors only allowed to edit certain parent+subpages?

I've tried a bunch of different plugins, including Role Scoper, Advanced Access Manager, User Account Manager and more, to accomplish this but can't seem to get it working right. Basically, the ...