Names for a set of user capabilities.

learn more… | top users | synonyms (1)

1
vote
1answer
74 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
22 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
14 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
22 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
97 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 ...
4
votes
1answer
84 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
22 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
37 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
58 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
26 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
127 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
37 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
51 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
56 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
154 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
23 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
42 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
37 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
60 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
39 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
61 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
45 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
20 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
44 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
37 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
25 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
51 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
136 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
137 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
370 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
85 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
2k 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
22 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
171 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
267 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
16 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
13 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
88 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, ...