Names for a set of user capabilities.

learn more… | top users | synonyms (1)

2
votes
0answers
27 views

How to make an author archive only for certain user role and show related CPT

Scenario I made a CPT where I'm taking the stakeholder's ID as a custom field. All the stakeholders are actually a WordPress' Registered User with a different role stakeholders - because at some ...
2
votes
0answers
47 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 ...
2
votes
0answers
67 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 ...
2
votes
0answers
180 views

User-edit role setting distinct from wp_capabilities?

I need find out how $profileuser->roles is set. wp_capabilities can hold multiple roles Whereas user-edit role caters only for a single role. Under certain circumstances it is possible for there to ...
1
vote
0answers
14 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 ...
1
vote
0answers
45 views

Get the User ID Who Owns a Given Blog ID in Multisite

I am working on creating a function that will take a $blog_id and return the corresponding $user_id of the user who owns/created the blog in a multi site network. public function ...
1
vote
0answers
65 views

Show comments of a user post only when they are login

I have a front end client portal I created when a user logs in they are redirected to a page called "Dashboard". The pages displays recent projects, invoices, and recent messages. Recent messages ...
1
vote
0answers
49 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
0answers
51 views

Limit number of users a role can create

Just wondering if there is a way to limit the amount of users a specific role can create? For example, if Editors can create new accounts, I only want them to be able to create 20, and then they ...
1
vote
0answers
52 views

Add custom role across network in multisite

Maybe this is a duplicate of Add role across network in multisite, but the answers there are not conclusive so I'm asking again. Any help would be deeply appreciated. I'm trying to add two new ...
1
vote
0answers
98 views

Editor and contributor roles not correct after adding function

** RESTATED ** I am creating a bridge. The work involves a default installation of WordPress and a plugin to bridge a forum and WordPress. The forum provides all the account information. The ...
1
vote
0answers
44 views

User levels and post visibility

I'm having a bit of trouble detecting the view-ability of post types. I've created a front end plugin which lists posts/pages by the author. Testing if a user can edit a certain post type is easy but ...
1
vote
0answers
44 views

Allow user role “salesman” to view only “client” role users

I have created two new roles in my theme, salesman and client. I want, when "salesman" is logged in to be able to view and edit only "client" users. I am trying this code (taken from an answer in this ...
1
vote
0answers
252 views

Featured image not working, because of custom user role?

I've got a weird issue. My post thumbnails aren't working with a custom role. Images can be uploaded, and when viewing the media uploader they show as attached to the relevant post. However, when ...
1
vote
0answers
65 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 ...
1
vote
0answers
263 views

bbPress: How to set conditional for specific user -or- user role, to be displayed in user profile

I've been trying to set a conditional for specific users (e.g. http://www.mywebsite.org/forum/users/john/) to display a custom "Contributor" graphic within their user profiles. The graphic would be ...
1
vote
0answers
70 views

Selectively applying action based on role

I've added an action to my functions.php file that forces a plugin (Content Scheduler) to act on posts, even when it wasn't explicitly enabled by the person writing the post. I've got that working, ...
0
votes
0answers
14 views

Hide All Published Posts from edit.php Paged

I am using AIT directory wordpress theme and customizing it. What i did till now is, created a custom post type similar to that came with theme, Now, all things are working correctly except one ...
0
votes
0answers
8 views

User roles: edit_post set but custom post type & posts not editable

I have a custom post type with the capability_type of "post". I then have a new user role with the following set: 'read' => true, 'edit_posts' => true, ...
0
votes
0answers
21 views

Wordpress Premium Access

I'm new to PHP and Wordpress. I actually achieved pretty much until now, but now I just cant figure out how to do one thing: Grant registered users access to "Additional Content", I don't know why, ...
0
votes
0answers
40 views

Problem assigning Custom User Roles to Custom Post Type

I'm having issues assigning custom capabilities for custom post types to custom roles in the WordPress admin. The markup works for one post type but not others. Let me explain a little... I've ...
0
votes
0answers
18 views

customize user roles as site admin in network

I want my site admins to be allowed to edit roles for their site. Enabling the plugin "user role editor" doesn't work. The site admin can't even activate or deactivate the plugin, he can't add roles ...
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 ...
0
votes
0answers
46 views

Welcome email specific to user role

I would like to send an additional welcome email to a specific user role, 'freelancer'. WP would still send its standard welcome email, with login and password, to all user roles. I found the ...
0
votes
0answers
23 views

How to disable the customizer?

I don't want anyone with the role below 'editor' from using the customizer. I still want them to be able to edit/change widgets and the menu. How can I do this please? My code so far, but it stops ...
0
votes
0answers
56 views

Add role privileges of the custom post type

I wonder if it is possible when adding a new role add_role() I can assign to it a privileges to add, edit, delete posts of a custom type. To be specific. I want to add a role 'volunteer coordinator' ...
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
27 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 ...
0
votes
0answers
18 views

Select Subscriber As Post Author In CPT, Admin Panel

I have a custom post type, jobs. I would like in that CPT to be able to select subscribers as post authors. I found this post, which does the trick for all post types, but I would like to restrict ...
0
votes
0answers
10 views

Synchronising Multisite Roles

I am trying to set up roles synced between a multisite master site and a sub site. I read the info here How to sync roles across Multisite?, but am not 100% clear on how to implement this. In my use ...
0
votes
0answers
23 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
7 views

How can I let one user update another users posts and metas?

I found out that I can simply assign an editor role to users by simply doing the following $u = new WP_User( 3 ); $u->add_role( 'editor' ); But in this case the user gains edit access to ...
0
votes
0answers
30 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
24 views

Change roles automatically after X time

We are developing a site that have three roles: Trial Paid No Paid All users that join to our site have a trial role by default, but we want to change it automatically to No Paid after 15 days. ...
0
votes
0answers
26 views

Best way to assign role to user across entire multisite?

We have a content editor role that allows only editing pages/posts, but this user should be able to edit posts/pages on ANY site in the network. The problem is that these users don't have a role on ...
0
votes
0answers
43 views

Assign user to blog and role on signup (Multisite)

This is the code I have, but I think I may be using the wrong hook, or perhaps it has to do with the whole activation mechanism, but it's not actually doing it. The role picker does show up, but after ...
0
votes
0answers
11 views

Author could only see users created by himself

I am not sure if this is an easy way to see own users in wp admin users list. For example i have multiple users with author role. and i want each author to create a user with a special role ...
0
votes
0answers
49 views

Allow users to change author of post

I want to allow people to ghost-write for other people. This is why I've made a custom taxononomy in my custom post types called Author filled with all the author names. Now I realize it's probably ...
0
votes
0answers
5 views

Created blog but did not visit the site: roles not defined

I am encountering a problem. I am on a multisite setting and I would like to create a blog and then before visiting them want to count how many users with certain roles are included in that site. So, ...
0
votes
0answers
38 views

Limit access to pages based on role

I'm looking for recommendations on how to limit page access by role on the front end. No plugins please, i'm looking for most robust code approach. I'm considering using a page meta field to store ...
0
votes
0answers
17 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
0answers
9 views

Admin user with just “read” permissions

How can I have a user level who can see everything a normal admin sees, but who can't edit anything? Basically a read only admin. To let a client have a look at the control panel but without letting ...
0
votes
0answers
42 views

How to Reset Upload Count of User as Admin AND User?

In direct connection to - Set a maximum upload count for users on a specific user role The user, gmazzap, answered the question above by using the following PHP code: add_filter( ...
0
votes
0answers
65 views

Restrict Editing by Category

I've tried every possible user role plugin for this, but each of them no longer work with the latest edition of Wordpress (Role Scraper, Restrict Categories, Advanced Access Manager, etc). If a plugin ...
0
votes
0answers
80 views

Allow Contributors to View/Edit Other Contributors' Pending Posts

I'm using the User Role Editor plugin to modify my user group permissions, but it doesn't quite have everything I need. Does anyone know a way to restrict contributors from viewing/editing any posts ...
0
votes
0answers
23 views

wp_dropdown_roles in a page

I have a question, I have been trying to create a page in which the admin can change the roles of a user from a dropdown menu. Just like we do in the user settings in dashboard. I have been trying the ...
0
votes
0answers
61 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> ...
0
votes
0answers
72 views

Search results show only content by admin post authors

In my current wordpress project there is an issue with search results. The project includes users of a custom role competitor who are able to upload images in the media library. Since ...
0
votes
0answers
47 views

Administrator role missing from Roles list - how to recreate

I used AAM to create different users with different roles. I mistakenly deleted an admin and recreated it. Unfortunately, I cannot create another admin now, as Administrator does not show up in the ...