Names for a set of user capabilities.

learn more… | top users | synonyms (1)

2
votes
1answer
1k views

How to remove “Super Admin” from All Users for those that are not a “Super Admin”?

I would like to remove the filter at the top that says "Super Admin" for users that are not a "Super Admin". How do I go about doing this? This screenshot shows what I am talking about:
0
votes
0answers
9 views

Get Sticky User in user loop based on user role

I have this code to display a loop of user avatars with order by registration date. $args = array( 'orderby' => 'registered', 'order' => 'DESC', 'fields' => 'all_with_meta', ...
0
votes
1answer
505 views

Allow editors access to added plugins

I created a custom plugin which i want Users who are Editors to be able to use the plugin. I found a link here to allow access for editors to allow editors to edit menusallow editors to edit menus? ...
-1
votes
0answers
20 views

Make a post readonly from a specific date

I have roles in my wp and I (admin) want to make a post readonly from a specific date to other roles. Is there a plugin or a code that i can do this? Thank you
3
votes
1answer
654 views

Deactivate plugin for a specific user group

I would like to deactivate a plugin for a specific user. I'm using the following code inside a the wp-content/plugin-mu plugin file: add_filter( 'option_active_plugins', 'bo_disable_apm_plugin' ); ...
25
votes
4answers
11k views

Getting a List of Currently Available Roles on a WordPress Site?

When writing WordPress plugins there is often a need to set up options for which roles on the site have access to certain functionality or content. To do this a plugin dev needs to fetch the list of ...
-1
votes
0answers
25 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 ...
0
votes
1answer
475 views

Custom Roll/Custom Post Type - Can't Select Categories

I am using Justin Tadlock's Members plugin 0.2.4. I have a custom user role "Author" that I am granting permission to post a Custom Post Type "blogpost". The Author can post and edit the CPT blogpost ...
1
vote
1answer
25 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
2answers
537 views

Add_menu_page() error message -> “You do not have sufficient permissions to access this page”

I'm currently building a website for a friend and have assigned him the user role of editor. I don't want to give him an administrator role in case he breaks the layout. Anyway, I am using ...
-1
votes
1answer
429 views

Multiple authors for single post without plugin

I'm new to using WordPress and so, apologies in advance if this seems like a very basic question. I want to have multiple authors for single post. I had seen Co-Author. But I don't have to use plugin ...
1
vote
1answer
170 views

Remove admin AND editor from the “change role to” menu in user listing

I have a snippet in my functions.php that removes the admin role from the "change role to" drop down menu in the users listing screen, so that editors who can list users and manage roles won't be ...
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 ...
3
votes
2answers
38 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
4answers
1k 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 ...
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
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 ...
0
votes
1answer
1k views

Plugin permissions for Editor role

I've added a plugin called Orbisius Simple Notice but I notice this applied to several plugins I have installed. The plugin works fine when logged in as an Admin. However, my clients who manage the ...
5
votes
3answers
2k views

How to let contributors to create a new revision(draft) editing their published posts

I'm using a custom post type to let contributors have a personal page on the site. Any time a user registers on my site a script creates a custom type post that has the registering user as the ...
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 ...
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 ...
0
votes
0answers
12 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
0answers
15 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 ...
0
votes
1answer
453 views

add user role selection to registration form [duplicate]

I need to add a select box or something like that into registration form in order to let my users to select custom roles I have defined.
1
vote
0answers
27 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 ...
0
votes
3answers
2k views

Allow a user to edit their own page and profile only

I am creating a WP site that has a list of members, where each member (about 20) has their own page. Each member page is created by an admin, but now i am stuck. I would like the content of each ...
1
vote
1answer
40 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
26 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 ...
1
vote
2answers
304 views

Conditional tag based on the role of author in author.php

Is there any way to display different data in an author.php profile template depending on the role of the profile displayed? (NOT of the person viewing it, but the author that particular profile ...
1
vote
0answers
23 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 ...
5
votes
1answer
474 views

How to allow an user role to create a new user under a role which lower than his level only?

I have three extra roles in my site. Doctor Receptionist Guest those roles are added by following code: * adding Doctor role */ $doctor_role = add_role( 'Doctor', __('Doctor'), array( ...
0
votes
3answers
1k views

Expanding the allowed HTML tags in comments?

I have no problem doing this in a comment, as an administrator: <b>bold test</b> <i>italics test</i> <u>underline test</u> <font color="#ff9900"> color ...
1
vote
2answers
2k views

How can I modify the Capability needed 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 ...
2
votes
4answers
5k views

How to prevent access to wp-admin for certain user roles?

I did try using the plugin Front End Users but this clashes with something as it prevents access to some front end pages. So I need to manually just set it so that anyone who isn't one of two ...
0
votes
2answers
54 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
26 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
49 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
25 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
31 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 ...
13
votes
5answers
13k views

How can I allow the Editor Role to change Theme Settings?

I've just setup a new Blog for a friend and thought it's better to not give him Administrator Access right away as a pre-caution. I created a new user as Editor therefore. But then I saw that this ...
0
votes
0answers
14 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
95 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) ...