Names for a set of user capabilities.

learn more… | top users | synonyms (1)

1
vote
0answers
29 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
73 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
19 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
36 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
52 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
24 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
105 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
35 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
23 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
46 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
55 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
20 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
131 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
20 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
41 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
36 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
27 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
51 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
35 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
51 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
20 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
37 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
18 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
38 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
36 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
24 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
50 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
24 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
124 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
125 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 ...
1
vote
3answers
339 views

Custom user role cannot see or modify featured image

I have created a custom post type called Event and I have enabled support for featured images in my functions.php file, but still my custom user role can not see the featured image meta box on the ...
0
votes
0answers
83 views

How to assign role to a custom registration form?

I am working on a custom registration form. How can I assign a role of "participant" to the new user? I tried many methods but did not succeed; the role change is not reflected in the admin user's ...
0
votes
2answers
1k views

Displaying which Role the current user is assigned to

Is there a section on the admin panel of my WordPress installation which just displays what role the current logged in user has? For example, I know I have administrator permissions because I know ...
0
votes
1answer
18 views

Allow signed in users (subscribers) to see their drafts

I allow signed in users to post on my site using a form. They can also save drafts. However, their role doesn't allow them to actually see their drafts so they see a 404 page. How can I allow them ...
0
votes
1answer
32 views

Allow viewing the edit screen for a post type, but not make/save/publish/update changes

I have been searching the documentation on how to do this. There is a user type manager who should be able to see the edit page of a custom post type called employees. The manager should be able to ...
0
votes
0answers
35 views

Send in for review instead of publishing posts

I'm using a script to add multiple editors to a specific post (custom post type), so when they login, they only can edit the posts they are linked to. The problem is, when a user edits a posts, he can ...
0
votes
0answers
156 views

Send email when specific user role register and block user

i've create this page to registration user on my wordpress + woocommerce. I like that Wordpress send an email to admin when specific user role register (for example scuole) and then, when ...
4
votes
1answer
250 views

What do unfiltered_html and unfiltered_upload actually filter?

Among WordPress' capabilities are unfiltered_html and unfiltered_upload, however I have yet to find any documentation about what specifically they allow or prevent in their filtering. The only ...
0
votes
1answer
21 views

Mutliple users editing single document in wordspress

My team is working on wordpress for documentation purpose. No I want to create a document with multiple chapters and different team members should edit different chapters. One chapter opened by one ...
0
votes
0answers
15 views

Published Status is not showing

I have a problem with wordpress. I am the administrator. When I create a post or page, it shows only draft or pending for review. I switched to default theme and deactivated all plugins but it didn't ...
0
votes
0answers
12 views

Prevent multiple roles

I have the following code which updates a user's role according to his/her Paid Membership Pro subscription: //assign role function my_pmpro_after_change_membership_level($level_id, $user_id) { ...
0
votes
1answer
26 views

Custom user roles doesn't apply changes

I have created a custom user role but something strange happens. This is the role: add_role('custom-role', 'Custom Role', array( 'activate_plugins' => false, 'delete_others_pages' => true, ...
0
votes
1answer
85 views

Assign Subscriber capabilities to a custom user role

I am creating a custom user role (client) for the application I am building, and I want this role to have extremely limited capabilities. I am using the add_role( $role, $display_name, $capabilities ...
0
votes
0answers
24 views

Different role for free and pro users in wordpress without using bbpress

I have the condition where all users are created by admin and user name and password given to them. When the created user login than pro user can create post, upload files, edit their profile but the ...
1
vote
0answers
60 views

Create Custom Multisite User Role to Reduce Capabilities

I need to create a new role for my multisite install for our Technical Account Managers so that they are only able to create/edit/remove users and create/edit/remove sites. I'm pretty sure I've ...
0
votes
0answers
20 views

User permission for specific pages

Is there a way to grant my users permission to specific pages on my site? I want for example, User A to view certain pages that are different than the pages I want User B to view. Is this possible, ...
0
votes
1answer
32 views

Multisite Admin Roles

I have a multisite with the following lines of code in my functions.php file: add_role('test', 'Test Priv', array( 'activate_plugins' => true, 'delete_others_pages' => true, ...
0
votes
0answers
12 views

User only edit CPT with slug that matches username

I'm in a situation that necessitates I complete this project within a week. So any help or specific guidance to my question would greatly appreciated. Is it possible, without creating an incredible ...
0
votes
0answers
21 views

Assign specific user type to specific plugin

I was wondering if there is a way (or even a plugin) to assign a specific user role to a certain plugin. Thanks.
1
vote
0answers
37 views

How to restrict access to specific pages on the back-end?

Before anything... I understand how roles and capabilities work. And there are tons of plugins that help you manage those. Roles and capabilities can only be so specific though. Is there "wordpress ...