Names for a set of user capabilities.

learn more… | top users | synonyms (1)

0
votes
0answers
18 views

Restrict access to Buddypress private messaging system [on hold]

How can I restrict access (to a role or an user) to Buddypress' private messaging system? I was trying to use the current_user_can Wordpress function, but it requires the capability as the argument. ...
-3
votes
1answer
23 views

Why User Management Plugins

What are some primary advantages of user management plugins over the standard WordPress system with roles? I think the latter is all I need, as the application only has to log users in and grant them ...
0
votes
0answers
32 views

A user role to view only draft posts

I would like users with the role 'revisor' to see posts in draft status. I've tried the below, but I get a 404 error. What do I need to change? function draft_post_revisor( $query ) { $role = ...
-3
votes
0answers
11 views

ACF required only for specified role

I have a custom field (on a custom post type) that should be required for one role, but optional for another role, from within WP admin. How can this be implemented? Thanks, DC
-1
votes
0answers
12 views

Topic tags deleted by other participants in bbpress

I am running bbpress(Version 2.5.9) + buddypress(Version 2.5.3) on wordpress version > 4.5.1. In bbpress there are users with Forum Role as Participant and site role as Participant. I have observed ...
0
votes
1answer
27 views

Add new post only in assigned category

Is there any possibility or plugin, that alows me to add a user (example author role) who could add posts but only in one category?
3
votes
1answer
55 views

How to hide post content/meta from everyone except the post author and admin

I'm trying to start myself off here but I can't get my heard around it... How can I hide and author's post content/meta from everyone except the post author and admin? This is my scenario... Schools ...
0
votes
0answers
11 views

How to loop through all sites and programmatically set auth to roles

I've tried this and googled around, but I don't understand where the problem is. This is for a network with small NGO sites, where you mostly have only one contributor per site, that is admin for that ...
1
vote
1answer
45 views

Do not execute If User is login as Administrator or any Specific Role

How can I not execute some <script> </script> if the user is an administrator or any specific role? Basically I need to do something like this: <?php if( !User( 'Administrator', '...
0
votes
1answer
26 views

How to allow users to view pending posts of a specific custom post type?

I have a form on the front end that allows users to post a custom post type. The posts enters the database as pending for later moderation, how do I allow users to view these posts on the front end? ...
0
votes
0answers
17 views

Create a role specifically for creating and editing a custom post type

I am creating a theme for a business. Using the WCK plugin I have created the custom post type 'teammembers' in which each post is a member of the team (name, role, image). I would like to make it ...
-1
votes
0answers
7 views

How can I give a user the right to edit pages, which however need to be approved first?

I'm trying to give a user the right to edit pages. However the standard "editor" role in Wordpress give the user the right to publish such changes immediately. Is it possible to let someone edit pages,...
7
votes
2answers
290 views

Remove update nags for non-admins

I'm trying to remove or hide the update nags for non-admin users. As an admin, I see: The popular answer I've seen to handle this says to use: function hide_update_nag() { if ( !...
0
votes
0answers
27 views

Allow custom user to Publish, But Not Edit or Delete a custom post type

If I create a custom post type in functions of my theme like this: add_action('init', 'mail_register'); function mail_register() { $labels = array( 'name' => _x('Letters', 'post type ...
0
votes
0answers
16 views

Allow all users with a certain role to edit a specific post

I have one particular post that is only editable by the author and admins. I've got a custom role named 'head_of_marketing'. I would like to allow all users with the role 'head_of_marketing' to edit ...
0
votes
1answer
57 views

Show global Message in User Profiles with admin only Input field in Wordpress Backend

I try to display a piece of text (without plugin) for example "Quote of the day: Some text" on all user profile pages (.../wp-admin/profile.php). This Text should managable/editable from the Profile ...
-3
votes
1answer
21 views

How to give different user access to different people?

I have a video tutorial website where I have to provide videos. For that purpose I have to give different user access to those who login to particular courses. So can you please help me what is the ...
0
votes
1answer
16 views

What is the capability that permits access to WP-Admin?

This is a very simple question but I have made great effort to find it already addressed on the stack. Basically I'm creating a new user role for a freelance web developer and trying to figure out ...
0
votes
1answer
21 views

Shared account / dual blogging in WordPress

I am running my own hosting and domain, with Wordpress installed on it. I am planning on posting there regularly, once or twice a day. However, a friend of mine would also like to contribute with his ...
0
votes
0answers
32 views

How to change the capabilities from upper case to lower case, while inserting onto database?

I am trying to insert custom user roles like Student, Teacher and Parent. While inserting the capabilities into the database, it is displaying the role in uppercase. I am not able to fetch the user ...
4
votes
1answer
54 views

Hide specific admin users' posts

I'm currently trying to modify my WordPress site so that Authors can not see a specific Admin's posts while editing, but are still able to see each other's posts (as well as the other Admins). With ...
2
votes
1answer
46 views

Create user role restricted to specific CPT

I am trying to create a role that can create and submit to a CPT only. When I take away edit_post from the role, it revokes the ability to create and edit any of the assigned and registered CPTs as ...
0
votes
0answers
10 views

Editor user role can't publish pages

I need the editor role to be able to publish pages, I've added this to my functions.php $editor = get_role('editor'); $editor->add_cap('edit_theme_options'); $editor->add_cap('tools_import'); $...
6
votes
1answer
246 views

Create custom user role (client) that can create another custom user role (employee) of that client

Bit of a long question, but I do believe this situation will occur for other people in other contexts. Our company needs to create an Employee Assistance Program MU subdirectory network site where ...
0
votes
2answers
57 views

Disable plugin per user role

I must disable a discount plugin for certain user role, I have wrote this and put in the child-theme functions.php global $woocommerce; get_currentuserinfo(); global $current_user; if ($...
0
votes
2answers
46 views

Get Sticky User in user loop based on user role

I have this shortcode to display a loop of user avatars with order by registration date. function Profiles() { $args = array( 'orderby' => 'registered', 'order' => 'DESC', '...
1
vote
1answer
44 views

How to get all capabilities of an existing user role

How can I get ALL the capabilities of an existing user role (eg. Author) ? I'll be using it to quickly duplicate an existing user role, then create a new role then assign or remove capabilities to a ...
0
votes
1answer
21 views

Change users.php WP_User_Query

A client has requested to have two kinds of custom user roles, and have those users displayed in an Admin Menu Page of its own. So far, I've achieved that using WP_List_Table with success. Now, the ...
5
votes
2answers
102 views

How to update user role without logout

I am working on a wordpress project with the following plugins : Woocommerce Woocommerce product vendors WP Job Manager Wp Job Manager products I am trying to upgrade the user role after adding a ...
0
votes
0answers
15 views

Limit editing capabilities to one page [duplicate]

I have one user on WP website. I want to give him editor role because he need to edit pages and as I see - edit_pages capability requires user to be at least editor. The problem is that i want to ...
0
votes
0answers
16 views

Multisite - custom user role assigned to user in all sites

I have a user A which should have following capabilities: site 1 / the main blog page= custom user role ("calendar only") site 2 = editor But the problem is that if I assign the custom role on the ...
1
vote
2answers
46 views

Role can edit just one page [closed]

I've built a site for a client, only ten pages, nothing especially big, and created a role for the group members called Blogger, as the staff need to all be able to both blog and access a couple of ...
1
vote
0answers
25 views

Add custom capabilities to existing custom post type

The only way I can find to associate post types with custom capabilities is during the register_post_type function. I'm looking to add a capability for a certain role (my_role) for a post type that ...
1
vote
0answers
41 views

Add additional 'description' field for defined roles / role metadata?

Is it possible to add an additional field for "description" to each defined role? (Administrator, Editor etc, plus custom roles). I'm using Justin Tadlock's Members Plugin and have created some ...
1
vote
1answer
74 views

How To Remove Dashboard Menu Items for Multisite Users?

I'm trying to remove some menu items in the Dashboard of Multisite users. For example my domain name is xyz.com, his site will be xyz.com/user. When he logs in to WP Dashboard under xyz.com/user/wp-...
0
votes
2answers
60 views

If user is logged in and has a role echo statement

I currently have a dive set up which I would like to display different bits of information when the user is logged in and has a specific role. I have three roles 'administrator' 'adoption-agency' ...
1
vote
1answer
14 views

Adding an additional role to an Administrator

User 19 is a WP Admin. $user = new WP_user( 19 ); $user->add_role( 'custom_role' ); The above code works and adds the custom_role role. However, when I run the same code on the ...
3
votes
2answers
107 views

wp_insert_user role not working

I have be trying this all day but it is not working how do I set a role for the current user I am inserting with the wp_insert_user() function $userdata = array( 'user_login' => $username, '...
1
vote
0answers
25 views

Allow role to edit users at lower level with only specific metadata

How to allow a custom role, company-administrator, to be able to edit/create/delete users lower than their level, subscriber, where some metadata is matched? To elaborate: I'm making a membership ...
3
votes
2answers
55 views

How to 'unpublish' or 'hide' posts when user role changes?

I'm working on a website that assigns different roles to different users - and I'm looking a functionality I would probably best describe as 'reverse access control': First, users of role "A" are ...
0
votes
2answers
60 views

Filter and validate user role in registration

I want to show a select box for user roles in the registration form. I am using this model: /* ROLES IN LIST REGISTRATION */ // 1. Add a new form element... add_action( 'register_form', '...
0
votes
0answers
38 views

add a custom user role and assign specific admin menu pages

There is wordpress function add_role to add a custom user role by adding wordpress defined capabilities like read, edit_posts, delete_posts, etc But I want to create a custom user role and assign ...
0
votes
1answer
31 views

Allow BBPress participant role to trash topics

I have a small project with BBPress roles, here is what needs to happen if at all possible. Participant Role Participants should be able to trash posts. Participants should be able to restore ...
0
votes
1answer
35 views

Get and display a user's profile info?

I'd like to get specific info about all users with a certain role, then display that info on a page. So, I'd like to: Get all users with the role "Manager" Get each user's avatar, first name, last ...
0
votes
1answer
28 views

List users of specific role instead of removing them with specific role

I am currently listing all the users except users with administrator role on custom page template with: <?php $allUsers = get_users('orderby=post_count&order=DESC'); $users = array(); ...
0
votes
1answer
106 views

Hide content and functions from specific user roles

I'm working on a theme and i am wondering how i can hide specific content and functions from certain user roles via PHP. I am working with a lot of prebuilt functions so what i am after is some code ...
1
vote
0answers
29 views

Sync only certain users and roles between multi-site / multi-network

I've a multi-network with this situation: A) a public wordpress site with a forum for customers B) an intranet site accessible only by users enabled I've created some roles such as: "staff","...
0
votes
1answer
35 views

Custom User role not working with custom post type

I am currently working on making a custom user role "adoption_agency". Along with this custom role, i have created a custom post type called "adoptions". I have given "administrators" and "...
0
votes
0answers
74 views

How can I fetch all users who are at or above X role?

What is the best way to get all users who are above a certain role, like 'author'? Is this the best way? $user_args = array( 'meta_query' => array( array( 'key' => '...
0
votes
0answers
45 views

How to bulk change user role to “No role for this site”

If I edit an individual user, the role dropdown menu has the option "— No role for this site —" (<option value="">— No role for this site —</option>): However this option doesn't exist ...