Names for a set of user capabilities.

learn more… | top users | synonyms (1)

-1
votes
0answers
20 views

Display all authors of custom post type with specific role

I was wondering if someone could help me out. I would like to create an adoptions-page.php template file within my wordpress theme. This page will display all the authors that have the ...
1
vote
1answer
23 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
16 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 ...
0
votes
0answers
7 views

non-administrators roles access denied

I have a contributor account that I am trying to log into, but the screen just says "Access Denied". I've tried switching the account to editor, author and subscriber and it always says the same ...
4
votes
2answers
75 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
14 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
11 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
14 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
26 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
36 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 ...
0
votes
2answers
41 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' ...
0
votes
0answers
24 views

Restrict access to shop pages for user role subscriber

im realizing an member area with the plugin WP-Members. I have to add an shop in this member area. My problem now is that i have just one user with the role of subscriber to enter the blocked content. ...
1
vote
1answer
13 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
34 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
19 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
50 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
51 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
24 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
25 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
24 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
25 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
46 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
24 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: ...
0
votes
1answer
30 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
71 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
27 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 ...
0
votes
0answers
13 views

translate_user_role doesn't work

I did dozens of tests, this is the code that I am tring to make work: $user = get_userdata($user_ID); /* WE NEED TO REMOVE BBP ROLES */ $roles = array(); global $wp_roles; foreach ...
0
votes
2answers
90 views

User role permissions based on taxonomies

I was wondering if it's possible to set up user roles in a way that means that users in certain groups can ONLY edit posts that have a specific taxonomy assigned to them e.g: Properties (Post Type) ...
1
vote
2answers
50 views

how we can get Users List by Role in WordPress

How we can get list of all users that are in wordpress by the role or capabilities. for example: Display all subscribers list in wordpress. Display all authors list in wordpress. Display all ...
0
votes
0answers
23 views

Access level seems to have gone from admin to editor

I have a client with a wp site (4.2.2) hosted by GoDaddy. Yesterday, when she logged in a number of links on the dashboard menu were missing = including plugins, settings. Others, like the godaddy ...
0
votes
1answer
27 views

How to make sure your admin doesn't hi-jack you site?

I have a domain and I would like to hire someone to develop it. Could it be possible to give him full control, yet be safe that he does not hi-jack the site. Or the only way is for me to be the admin ...
0
votes
1answer
22 views

Adding admin for specific users

I was developing a website and I ran into this issue where I need to provide an "admin" account that can monitor registered user activity on my site. Now I don't want one "admin" to view users that ...
0
votes
1answer
38 views

Redirect admin 403 “Cheatin uh?” admin pages

Blocking role capabilities on the admin returns the 403 "Cheatin Uh?" page. What is the best way to redirect this to 403 page to perhaps the dashboard, homepage, or a custom 403 page? I know I could ...
1
vote
1answer
27 views

Undo User Role Name Change

I had changed the default user role name for 'contributor' using following code in the theme function file global $wp_roles; if ( ! isset( $wp_roles ) ) $wp_roles = new WP_Roles(); ...
0
votes
0answers
12 views

Multisite - make an admin network page accessible by any user in the network

I want to programatically create a new blog for a newly registered user and I have an issue with permissions. For the wpmu_create_blog function to work properly, some files must be included and when ...
-1
votes
1answer
64 views

Sync roles across several plugins

Here is the setup: I am implementing Wordpress with two specific plugins: Ultimate Members and Yith Vendors which is a woocommece addon. What I need to do is change a field's data in the database ...
0
votes
0answers
61 views

How can I track registered wordpress users with Clicky analytics by user role?

I use Yoast's Clicky analytics plugin to easily integrate Clicky tracking for my wordpress website. (I tagged this question with the google-analytics tag because I do not have enough points to create ...
0
votes
0answers
56 views

Allow Admin to edit Custom User Role Custom Post Type posts

I have created a Custom Post Type of 'Listing' so that users can add listings by signing up to the website. I have also setup a Custom user role of 'lister'. So, each user (lister) can sign up to the ...
1
vote
0answers
12 views

How to create user that has permission to create new sites on WordPress with multisite option enabled?

I have installed user roles editor plugin https://wordpress.org/plugins/user-role-editor/ and created new role, but can't make this role to give the user ability to create new sites on WordPress with ...
1
vote
0answers
23 views

Multisite user roles - capabilities not working

I have turned my WP to Multisite and when I try to assing different roles to users, the role is assigned correctly - or at least it looks like (if you have user overview), but the capabilites are ...
0
votes
1answer
28 views

Restrict Access to the User Profile

What I want is, give different Roles different kind of access to the user profile. For example, I want to show the section "Name" but not the section "Contact information". From other sections I just ...
0
votes
0answers
92 views

Display user role name instead of user role id in wordpress

I want to display the user role name next to them on an event attendee page. So far I've got it to work using this code: $aanmelding = $EM_Booking->get_person()->ID; $user = new ...
0
votes
0answers
14 views

“User Role” Not Working

While following recommendations in IThemes Security Plugin, I renamed the database file prefixes which broke our site (multisite installation). I restored the database and everything seemed to work ...
0
votes
0answers
16 views

Allow user to edit same category posts published by other user

Is it possible to allow user edit their own posts and also posts that are published in same category by other users?
0
votes
1answer
55 views

New Users are saved with no role selected

I'm working on a plugin that adds new user roles: Manager and Employee. Managers are supposed to be a "pseudo-admin". They can manage all post content (private or otherwise), and should be allowed to ...
0
votes
2answers
38 views

Link Author URL's based on a custom field

I'm querying a custom field of users based on a city they are in. I am able to display their profile photo and display name, however I can't seem to get the link to their actual author url to work. ...
0
votes
0answers
16 views

Show authors own posts AND all other authors published posts in dashboard

In the Backend Posts section I'm looking to show only the logged in authors posts and all other published posts. e.g. Author 1 has 3 drafts and 1 published post. Author 2 has 4 drafts and 1 published ...
1
vote
0answers
22 views

Allow users to set a post author

I have a website owned by myself that allows people to submit work for us to publish. I have a team of staff who need to create posts..etc I have assigned users the author role which allows them to ...
1
vote
0answers
38 views

Add conditional custom option to 'Display name publicly as' dropdown

Besides the built-in "Display name publicly as" options, I would like to add a custom "name + nickname + surname" option to the dropdown. This custom option should be determined by two conditions: ...