Names for a set of user capabilities.

learn more… | top users | synonyms (1)

-1
votes
1answer
25 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
13 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
23 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
votes
1answer
25 views

Event Manager Plugin

I am using the Events Manager plugin (https://wordpress.org/plugins/events-manager/). All users are able to posts events and can view their own events when logged in. I was wondering does anyone know ...
1
vote
0answers
10 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
15 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
23 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
11 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
5 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
15 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
37 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
24 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
11 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
14 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
28 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: ...
1
vote
1answer
45 views

Display user meta by different user role

I have added in my functions.php child theme some user meta and works no problem, but I need to display this data only inside a user profile with a specific user role named "rivenditore" and if is ...
0
votes
1answer
16 views

How to add a menu page for options in wordpress for user that has the role of vendor?

I want to add new options page ONLY for those users whose role is vendor. How can I do that? This is my current code. add_action('admin_menu', 'business_settings_menu'); function ...
0
votes
0answers
11 views

Site admin that can see everything, but not save

Maybe it's strange question, but I'm interested in it; Is there any way to allow user display everything, that Admin can see (site options, custom types, plugins settings) but disallow to edit ...
0
votes
0answers
15 views

Hide categories from authors

Is there a possibility to hide certain categories from specific user roles? This must only affect the backend, especially the create post site. On the frontend these "hidden" categories must not be ...
3
votes
1answer
62 views

Remove upload_files capability from a role but allow role to manage an avatar image

I have a site with 1 admin, 11 editors, and 4000+ authors. I need to prevent the authors from adding media to the server and using up all the storage. Initially I tried function ...
1
vote
0answers
21 views

Filtering posts by user role [closed]

I have created some custom roles in my Wordpress installation. Now I want to filter the posts they can see and edit based on a custom field criteria. How can I define this behavior in a custom user ...
4
votes
1answer
43 views

Grouping users under parent user

What it needs to be like: one "super user" with user role company normal users with user role employee I don't want "super user" to be able to have more capabilities, especially admin-like ...
0
votes
1answer
14 views

Restrict backend but allow to use post.php?action=delete&post=POSTID from front-end

Restrict backend. add_action( 'init', 'blockusers_init' ); function blockusers_init() { if ( is_admin() && ! current_user_can( 'administrator' ) && !( defined( 'DOING_AJAX' ) ...
0
votes
1answer
34 views

get_post_meta with related user

When I call post with get_post_meta I get all posts.I would like to get related post from user when using get_post_meta. How would I achieve this? Example: If I am logged in as foo than I would like ...
0
votes
1answer
31 views

Force “submit for review” on update?

I'm trying to force all content to be submitted for review. That means that if a user updates an already published page, that the update would be pending until someone else approves it. I don't see ...
0
votes
1answer
17 views

Run only on plug-in activation instead of wp_head

I have below function on my plugin which adds more capabilities to current user. // Role setting for add media function wh_edit_roles(){ if ( current_user_can( 'edit_posts' ) ){ $user = ...
0
votes
1answer
44 views

Allow author to upload image via Media button without plugin

I believe as default WordPress won't allow author to upload image via Media button on TinyMCE. It will give you You don't have permission to attach files to this post. error message if you do. I'm ...
1
vote
1answer
27 views

Create custom post with custom user rules

I am create a custom user post type testimonial and want to give permission to user to edit and delete there post but its show some error. 1. I created user rule. function ...
0
votes
0answers
12 views

Hide admin menu items for role

I would like to hide the admin menu items 'Posts', 'Pages', 'Tools' etc. for specific custom added roles. But I don't only want to exclude the items from the menu, I also want to make it impossible ...
0
votes
0answers
28 views

Post_name is missing after wp_update_post

I have a problem with my CPT. Registered a partner post type and I want the partner to be able to edit it if the post is draft or pending. I can edit the whole post instead post_name. Post name will ...
0
votes
2answers
38 views

Create a function to display HTML/data based on site admins role?

I need to make a shortcode to display some HTML on a page based on site admins "role"? Not the logged in user but the site admin's role. By default the role is 'administrator' and the only other role ...
2
votes
2answers
19 views

How can I allow user to select minimum privilege smartly

We can easily asses a user's role using current_user_can(), but it doesn't support an array of user roles but a single role. So we have to check each of the role multiple times: if( ...
0
votes
1answer
66 views

How to change user role using hook

I have created some custom user field , so i can manage my users as dealer in my website . Now my problem is with that user role , i want to make something in my function.php to check if my custom ...
0
votes
1answer
16 views

Let users edit their role from the frontend

Most site ask users to choose their role at registration (for example it can be "are you an athlete/student/worker/designer" and each of these would be a user role which would appear in a different ...
0
votes
2answers
37 views

Limit role to one plugin [duplicate]

Is there a way to do this without using another plugin and without modifying WP core code: I want to give the custom plugin I am writing a settings page. So I will need to add plugin capabilities to ...
0
votes
1answer
32 views

Custom user role doesn't show up in admin

I followed a tutorial on how to add a custom user role, and when I put this in functions.php: $result = add_role( 'user1', __( 'user1' ), array( ) ); ..the new user role is supposed to ...
0
votes
1answer
23 views

How to limit the pages shown in the page manager to those created by the logged in user?

I am a high school teacher (not a developer by any means), and I run a small WP site for my classroom. All of my students are contributors to the site, and I use a combination of several plug-ins in ...
0
votes
1answer
30 views

Post visibility based on user role

How can I make it so that new posts will be automatically private, except visible to other users which have the same user role as the post author?
0
votes
0answers
29 views

Change the user role based on login or theme switch

I'm developing a CMS system based on a multisite installation. I need to be able to do the following: Whenever a user logs into his site, he will immediately be forced into "Contributor" role. I ...
0
votes
1answer
43 views

How to change a user's role depending on date registered?

I imported 4000 users on 1st October 2015 as "subscribers" and now need to change all their roles to a custom role called "To Be Approved". So what I need is to change the roles of these subscribers ...
0
votes
1answer
18 views

Frontend view of normal Visitor

Is there a way to see the frontend from the perspective of a normal visitor? Perhaps a plugin or a way to disable the user_role check (don´t know how it works) only in the frontend without beeing ...
1
vote
0answers
19 views

Allow user to only access custom post type

I am starting to get comfortable with Custom Post Types, but I don´t get the capabilities for them right. I have something like this: // define capabilities... $capabilities_werden = array( ...
0
votes
0answers
16 views

Assign users to groups that can only see/edit certain pages within the admin?

This may have been answered before, but I'm having trouble getting it to work. I want the ability to assign users to groups (e.g. Bob & Susan are assigned to Group 1). When I'm creating pages, I ...
2
votes
2answers
31 views

Expire a user's secondary role after X days from it being allocated

The snippet below links a user's Easy Digital Download (EDD) download payment to allocating a secondary user role to that user. As per the example below... If a user buys a EDD download with a ...
0
votes
0answers
26 views

Displaying WordPress User Role

I have a ticket support form on my site which right now has a field which returns (in the admin area) the name of the person who submitted the form. Anyone know how I would modify this to display ...
0
votes
0answers
22 views

How to get permissions to read the post

I have a problem to make this kind of functionality within Wordpress. Three equal user groups: A, B and C. I have a list of all posts with different permission assigned to read them: posts open to ...
0
votes
2answers
41 views

Remove All in One Seo from Posts for Contributors

I am using latest version of All In One Seo Package. How can I remove metaboxes from posts for User Role: "Contributors"?
0
votes
0answers
21 views

WPMU: Sign-Up Page on each site with automatic sign-up?

I wonder how todo the following and if someone could help me with a solution for it: I have a multisite setup, where I want on each site to have their own sign-up page (e.g regular signup-template ...
0
votes
1answer
82 views

How do I apply/target css to a specific user role?

How would I apply some front end css to only a specific user role/s?
0
votes
2answers
89 views

Show Wordpress Plugin Menu(Admin) To Editor

I am an Admin of wordpress website and I have created one user with Editor role, I have installed one plugin Pretty Link(https://wordpress.org/plugins/pretty-link/) this plugin shows its menu on Admin ...