2
votes
0answers
15 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
2answers
51 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

Adding post tags without capability edit_posts

I have a custom role called Event Contributor whose capabilities are limited to the post type "events". The role does not have the capability "edit_posts". The post type "events" has custom ...
0
votes
0answers
33 views

Assign Role and capablitis on frontend registration

I have created 2 custom roles "customer" & "employee" form admin "members" plugin. I am trying to assign these to user registering for site according to options (customer & employee) they ...
2
votes
2answers
106 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
58 views

Assign multiple roles , overlapping capabilities

What happens if i assign let's say 2 different (custom) roles to a user that both of which have the same (custom) capability?
1
vote
1answer
37 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 ...
4
votes
1answer
39 views

Possible to make custom role in multisite that can add sites?

I am creating a network on MultiSite, and am wanting to keep the Super Admin privileges very tightly locked. This setup is hosed on WPengine, and they add their plugin in the dashboard that shows the ...
0
votes
1answer
66 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
0answers
43 views

Adding a new Custom Capability

(There are about 3-5 answers regarding this question that I can find and none give a solid answer - I want to do this without external plugins because this is for my own plugin) I am looking to add ...
0
votes
1answer
476 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
45 views

How to make a plugin appear only to a certain role of user?

I'm using a plugin called "Team Result", to create team results and things like that. It appeared on the dashboard for admin(me). As you can see in this print ...
1
vote
0answers
59 views

Purpose of Adding Capability to Role But Not Grant?

I am attempting to create a custom role upon activation of my plugin. Along with that role, I wanted to add new capability to that role to access later. Now, after reading the Codex, I am totally ...
0
votes
1answer
185 views

Custom role, capabilities, and post type: preview button wrecks things

I'm using the Members plugin to manage capabilities of a custom role that will only be able to edit/publish a custom post type that I created in my functions.php file. After much work, I got this ...
2
votes
1answer
467 views

Limit access to page depending on user level

I've been asked to build a WordPress that limits access to posts with a particular custom post type based on the logged in users level. There will be a number of pre made user roles and they would ...
0
votes
1answer
93 views

Custom post type & role issues

I am having issues with using custom post types and custom user roles. I created a custom post type called Businesses. Then I created capabilities for users of a certain type to be able to add and ...
2
votes
2answers
103 views

Unify the roles and caps?

I installed several plugins(buddypress-docs,achievement,bbpress), each one create capabilities for their own post_type. I would prefer to make all roles and capabilities unified into one system, Is ...
0
votes
3answers
635 views

Check whether user can delete a given post

I have run into this problem where the following piece of code always returns true for any post ID supplied to it. current_user_can('delete_posts', $post_id); Normally, the above code should return ...
2
votes
3answers
2k views

Role that can edit only widgets, not other theme options

How could I make particular role access widgets administration menu (wp-admin/widgets.php), but not access other theme administration menu elements. I have got that far as to display Appearance menu ...
0
votes
1answer
49 views

Best Roles and Capability on a site with review features using a front end custom post

I'm working on a Movie Blog site, I'll be having a movie review for site members and planning to create/install plugin that can create a front-end post/edit using a custom post type for that reviews. ...
0
votes
2answers
560 views

How to hide plugin options for editors via functions.php

I've read the entry Best Collection of Code for your functions.php file, it really help me a lot. I only got a question, is there a way to hide some plugins options (in their respective ...
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 ...
1
vote
3answers
275 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', ...
3
votes
1answer
453 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 ...