Questions tagged [user-roles]

Names for a set of user capabilities.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Woocommerce payment based on cart value & user-roles [closed]

I'm trying to filter payment method in woocommerce. My conditions are as follows. Only Verified Customer able to use COD Minimum $15 for COD Payment I tried this code: function filter_gateways($...
1
vote
0answers
7 views

Set different custom menu items for different user roles

I have added some custom menu using add-menu_page and it is working perfectly with the default administrator admin bar. But when I log in to different user roles, they are not showing. My question is ...
0
votes
0answers
15 views

Hide payment method based on user role AND minimum cart value

Around April this year, we have to move our business 100% online due to the pandemic. Physical store hardly get one customer per day. after 5 months, we recognizes pattern; almost all failed COD ...
0
votes
0answers
8 views

Need membership plugin with separate directory creation

Could any body recommend me plugin Where user will be able to register . Directory will by created by username Admin can post contents and notes to particular user directory and would able to access ...
0
votes
0answers
13 views

Change user's posts to draft upon user role change

I want to change a user's posts (in a custom post type) from published to draft upon a change in their user role. Anyone know how I can do that programmatically?
0
votes
0answers
9 views

How can I have different groups of editors only allowed to edit certain parent and child pages? [closed]

I have tried Publish Press but I can't seem to set it up the right way or this just won't work using the plugin. Are there any other solutions I can try? I tried Capabilities Manager but that only ...
0
votes
0answers
28 views

How to hide “Change role to” dropdown on Users admin menu

How can I hide the "Change role to" dropdown?
0
votes
0answers
11 views

Need help with Task assigning and rewarding as currency which withdrawable

I have created custom roles and registration forms by using ultimate member plugin. Mr. Y Mr. X I've assigned Mr. Y to my purchasable services (I am using ez form calculator plugin for this). Now ...
1
vote
1answer
22 views

Custom post type - no layout section of Document tab, and no author choice

A portion of my website is used by another non-profit organization. In order to restrict them from editing/deleting at large, I created a custom post type for them, and added a user role to go with ...
0
votes
0answers
6 views

I cannot view users added products on the author page

I would like to consult you a question I cannot find the answer to. I am developing a website that uses Wordpress. A user in the agent role adds a product. I cannot view user added products at www....
1
vote
2answers
23 views

Show metabox for a special role

I have special roles on my site. I use easy digital download. My user has access to the download page. I want the metabox not to see the number of sales. Can I hide this metabox for this role or user? ...
0
votes
0answers
9 views

Roles and User editing

I have a woo-commerce site that has Customers, Store Vendors and Store Managers. Store vendors are able to use a particular page on the website to submit a product as draft to be reviewed and ...
1
vote
1answer
8 views

Hiding div based on user role

I am running the following snippet on my wordpress site to display an image. I would like to hide this div if the user role is "wholesale" (a custom role I created). Is this possible? ...
0
votes
0answers
15 views

WooCommerce custom role not working

I am trying to add WooCommerce product adding/editing capabilities to the Yoast SEO Manager role, however all it does is add the WooCommerce menu icon to that user role, and not the products tab, so ...
0
votes
2answers
31 views

check the first login for specific roles

Based on this answer i created a small functionality for users that are logging in for the first 3 times to make some elements classes use css animation. What i am trying to do is to adjust this code ...
0
votes
1answer
13 views

Add User Role: Pre-saved in User-Meta [SOLVED]

I am adding an action after user registration to add another user role based off the users meta_value. When I use: add_action('um_after_save_registration_details', 'custom_after_new_user_register', 10,...
1
vote
0answers
29 views

Updating wp_user_level on user update

I have the following code, which properly adds the wp_user_level of 2 when a new user is registered with the role "division_manager". I need the wp_user_level to be non-zero so they can be ...
0
votes
0answers
20 views

How to manage roles and capabilities [duplicate]

Roles and capabilities is easily the most confusing part of WordPress. Just when I think I have it sorted, I realise ...NO! I created a plugin and gave all the plugin admin pages in Dashboard: ...
0
votes
0answers
11 views

Allow users to change their role except for the roles I choose

This function displays a check list and allows all users to edit their user role/s to any others in the backend user profile backend, including admin etc. How would I exclude certain roles from the ...
0
votes
0answers
10 views

Are there Wordpress user capabilities needed for the customizer?

I'm creating a theme for Themeforest and in their requirements they say that I should use the functions current_user_can to determine if the current user has certain capabilities. For me this would ...
0
votes
0answers
14 views

Woocommerce, If Purchase more then 9, change Role!

I got this code and its working great. add_action( 'woocommerce_order_status_processing','change_role_on_purchase' ); function change_role_on_purchase( $order_id ) { $order = ...
0
votes
0answers
38 views

How to create an anonymous forum?

I am trying to create an anonymous forum with WordPress. This idea would be that users could create an account in order to follow their posts and answers, but nobody except themselves could see their ...
3
votes
1answer
39 views

How to prevent users with “edit_others_posts” capability from editing admin posts

I have some posts that author is Administrator and some other posts that author is Editor After logging in as Editor, I can edit Administrator posts. I would like to prevent this. I find some ...
0
votes
2answers
19 views

Find count of WordPress users by role and search string for user name

I want to get the total number of results after searching WordPress users by role and a string that matches the user name. What I tried so far: $args= array('echo'=>false, 'role' => 'author', '...
0
votes
2answers
46 views

How to display total user count by specific role in WordPress as statistics?

i want to display in my Home page total user count by specific role in WordPress as statistics I already created Role (subscriber, contributor) and i want to show the total users for each of those ...
0
votes
1answer
21 views

How to restrict subscriber editing other posts but read specific posts in backend

I need to allow Subscribers to edit their posts (done) and read (see in backend) posts of specific author or with specific ID (to make copies of it). I found the code, but that's not enough: function ...
1
vote
1answer
18 views

What determines whether admin toolbar is shown to a logged-in user?

By default, Wordpress shows admin toolbar to Administrator, Editor, or Author but not to Subscriber or unauthenticated visitors. What determines whether admin toolbar is shown a logged-in user? I am ...
2
votes
1answer
19 views

Why do comment moderators need to have all create/edit/delete toboth posts and pages?

I struggled quitea bit to be able to set up my moderator account. Until I allowed all posts and pages capabilities and now the can finally moderate comments. I didn't deactivate one by one precisely ...
1
vote
0answers
59 views

wordpress user roles are not working

I have never assigned or used a role before on this site, I have just created a new user role with plugin "user role editor" and also assign an editor Role to other account, whenever I log ...
0
votes
1answer
17 views

Remove check boxes and its label from screen option for custom role

I want to hide many check boxes and its label in screen option only for custom user role (wdm_instructor and group_leader). How to apply below code so its for custom user role only: add_action( '...
0
votes
1answer
8 views

Every change made by “Author” role is going to “pending review”

I don't know if this is an issue with the module https://wordpress.org/plugins/user-role-editor/, or this is an internal behavior of WordPress, but for some reason, every time a user with "Author&...
0
votes
0answers
8 views

Woocommerce Filter Table biy price role

I am currently using two plugins in my store WooCommerce pricing by user role WooCommerce Dynamic Pricing & Discounts is there a way to make a table for me to filter product prices by user role?
1
vote
0answers
17 views

Only view/edit/delete CPT made by users with the same role

I have created a custom post type (CPT) called "books" where users will be able to exchange "bookid" and "bookinfo" (as ACF). I have created user roles such as Countries ...
0
votes
1answer
25 views

how to create user profile pages and display them based on users roles

Example: I have a website with 3 different user roles (amongst others): *developers *designers *contributors I would like to have profile pages for users and would like to be able to display users on ...
0
votes
0answers
15 views

Can I add a rule that changes a role?

For instance once a customer spends $500 change the role to subscriber. I would like it to automatically change and then reset at the beginning of every month. Is this possible?
0
votes
0answers
16 views

Restrict Users to Only Edit Media Owned by Users in Their Role

I want my users to only be able to edit media that is owned by other users in the same role as them... So far all of my research online the past two days have resulted in almost nothing useful to me, ...
0
votes
2answers
43 views

Removing menus from users other than the administrator

I want to remove some of the menu links from all users except the administrator. How can I do it?
0
votes
0answers
18 views

Add_role on plugin activation not working… what am I missing?

So I'm in the middle of writing a very simple plugin that I need to add a user role on activation (and remove when deactivated). The plugin is firing fine, and I know my activation function is firing ...
2
votes
0answers
26 views

Registration and Custom Post Types - How to synchronize information?

I am building a platform where service providers can offer their services to potential customers. Therefore, I have two user roles, one "customer" who can only create an account and read; ...
0
votes
0answers
18 views

A specific User must select a parent post to publish a post

function wbg_custom_attribute($pages, $parsed_args){ global $wpdb; $user = wp_get_current_user(); //print_r($output); //print_r($pages); if ( in_array( 'translator', (array) $...
0
votes
0answers
12 views

How can I add specific roles in the registration form to make the user choose his role?

I tried this code but it causes showing of all roles even administrator .. I want to choose specific roles like editor and subscriber add_action( 'register_form', 'myplugin_register_form' ); function ...
0
votes
0answers
27 views

How to get translated role names from different plugins?

For some reason in edit-user.php I have to do a checkbox list of user roles. I got it but I have a problem of translation. My code <?php foreach ( $roles as $role_id => $role_data ) : ?> ...
0
votes
0answers
18 views

Hide certain theme options under customizer for certian user roles

I'd like to hide only certain theme options from certain logged in users (editor role). What do I need to add to the below? The below works but also removes it for the Admin user. I would like to deny ...
0
votes
0answers
14 views

Creating relationship to custom types

I'm working on a project that requires a relational model between custom types and fields. Here's a diagram of what I'm trying to achieve: I'm looking for some guidance/sanity check to accomplish the ...
0
votes
1answer
22 views

Conditional post thumbnail based on logged status and post tag

I'd like to show different post thumbnails in archive.php and category.php like this: user logged out & post has tag "private" -> shows a "default-private" image user logged in & post has tag ...
1
vote
0answers
10 views

How to set individual capability of post type in individual category

I need to add a new post type "Story". Each of my users I will give them an individual role to edit/view their own "Story"(One user one role). User Role only gives ability to limit capabilities based ...
0
votes
1answer
23 views

Custom author url and page for another role

I would like to create a custom url and a separate or duplicate the author.php template for another custom role w/o using plugins. I found this related topic but it just modify the author url ...
0
votes
0answers
28 views

hide pages for the page list for some user role

I need a way to make some pages not visible for 3 users role (editor, contributor, author) on the page list (edit.php?post_type=page). I think it is about permissions but i dont know how to do it. I ...
1
vote
1answer
15 views

Displaying different in-page content to cliente/admin

i'm a young informatic engineer student who is developing his first wordpress website. It is a booking website when a client can see the available hours in certain local and book it, and the local can ...
0
votes
0answers
12 views

allow authors/editors dashboard access with limitation

I want to allow my authors/contributors/editors to access the dashboard access without allowing them to access any plugins or any other items other than create posts and add contents. there are a ...

1
2 3 4 5
25