Questions tagged [user-roles]

Names for a set of user capabilities.

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

Hide an order status on WooCommerce from a user role

how to hide the custom order status "Check Out" on WooCommerce from a specific user role, we have Traveller WP Theme installed using WooCommerce for rental units booking & i have a user ...
-1
votes
0answers
9 views

How do I give an editor full access to the 'Easy appointments' wordpress plugin? [closed]

Currently only admin can fully use the addmin panel of the 'Easy appointments' wordpress plugin. Such as new workers add, new location add etc. I want my editors to be able to handle the appointment ...
0
votes
0answers
14 views

Woocommerce Wcvendors - duplicate emails when Vendor approved

I am building a marketplace using WC Vendors on top of Woocommerce. The vendors apply by completing a form, which creates a user with the role 'pending vendor'. As admin, I then click 'approve' or '...
0
votes
0answers
15 views

Allow a particular user to access a particular plugin?

Hi I am using a Tutor LMS website, so I wanted to give access to the tutor instructor(user) to access a single plugin Presto player in his dashboard. I tried many plugins to change the capabilities ...
0
votes
1answer
55 views

Added new role with custom capability. But cannot access the page

Created a new role (price_admin) with the following code and added capabilities. The menu item appeared, but clicking it shows "you are not authorized to access this page". function ...
0
votes
0answers
10 views

Run function for specific user role [duplicate]

I need to run this function for specific user role shop_manager: //Editar campos de alta de producto function hide_things() { if(is_admin()){ echo '<style type="text/css"> /...
0
votes
1answer
22 views

Adding a role using Members and Formidable Forms [closed]

Not a coder :-( Been using a snippet to change roles when someone completes a Formidable Forms. Works fine. But on another site, I want to just 'add' a role. I don't know how to modify the snippet ...
0
votes
1answer
25 views

Adding all custom capabilities to admin

When adding a custom post type using the "capability_type" argument, custom capabilities are automatically generated for the post type. https://developer.wordpress.org/reference/functions/...
0
votes
0answers
11 views

Restrict admins from viewing subscribers admins are not overseeing

On our site, we have user hierarchies. User Admin A oversees users in Group A, User Admin B oversees users in Group B, and so on. We need to ensure User Admin A cannot view users in Group B and vice ...
0
votes
1answer
12 views

Custom Plugin - Blacklist/Whitelist domain email and change user role - Suggestions

i've a website with SSO Saml. I need to have a blacklist/whitelist based on domain email and after this is checked i need to have a change role by double check between profession/specialty parameters ...
0
votes
0answers
17 views

Create relationship between custom post types and users

How do I create a relationship between custom post types and registered users? So, I can display posts related/associated with that user on their account page. Please, any suggestions would be greatly ...
0
votes
0answers
42 views

Change auth_cookie_expiration for specific roles and specific login times

In my db i have a login counter that keeps a number value as a record (1,2,3,4,5...)every time a user from a specific role logins. I am trying to change the auth_cookie_expiration to 1 day for ...
1
vote
1answer
47 views

Restrict editing of posts with specific taxonomy to users with a matching meta value?

I need to restrict users from editing custom post types that don't have a taxonomy or custom meta value matching a hidden value in their WP user meta. We've created a custom post type that is an ...
0
votes
0answers
12 views

Can I present different TinyMCE toolbars to users with different roles?

I'd like to be able to offer different TinyMCE editor toolbars to different users, based on their roles, much like Drupal does. For instance, admins might have a large number of tools to click on, ...
1
vote
1answer
19 views

How to load a css file depending on the current role

I have created a custom role (b2b) and I am trying to load a css file while the 'b2b' role is logged in or the administrator. I have tried the code below and I can't get it to work. Any help or ...
0
votes
1answer
19 views

Infinite redirects at front end if logged in user is not an Admin (Toolset Access)

I bought the toolset access plugin to handle specific user roles for languages. Once I log in as a user - which is not an admin - can be any like editor, contributor etc. The front end will not be ...
0
votes
2answers
46 views

WordPress: Custom User Role cannot access Custom Post Type | "Sorry, you are not allowed to access this page"

The Objective: Create a custom post type and only give administrator and a custom role permission to view / control it. The Problem: For administrators, it works perfectly fine but for the custom role ...
0
votes
0answers
15 views

Shortcode letting user to "join" the multiple user roles

It is possible to create some sort of shortcode which allows users to "join" the particular user role from frontend? Like if user is subscriber by default to let him join also user role such ...
1
vote
0answers
17 views

Assigning Custom Post Capabilities to a Custom Role and WordPress Default Roles

This is the first time I have messed around with custom roles and would appreciate any pointers! I have created a custom post type, let's call it "book", and would like to create a new role ...
0
votes
0answers
18 views

Role added by plugin remains even after deactivating plugins

I deactivated a theme and its plugins which adds a lot of roles, but the roles are still there. I then deactivated all plugins and changed the theme to the 2021 wordpress theme. The roles still won't ...
0
votes
0answers
8 views

How to allow comment authors to moderate their own comments on someone else's post?

In order for a user with an author role to edit their comment on someone else's post, they need to have 'edit_others_posts'. add_filter( 'map_meta_cap', 'comment_editing', 10, 4 ); function ...
0
votes
0answers
14 views

Set role to a guest user, it's possible?

I've been questioning for quite a time if it's possible to grant access of a user role to a guest/visitor and I haven't found a proper answer. Can you guys give me a light spot in the end of that ...
0
votes
0answers
13 views

add more than 1 role to users

Is it possible to give users more than one role? For example, add multiple roles and give the user several different roles when creating If possible, please explain how
0
votes
1answer
27 views

custom plugin not visible to some user roles

My plugin have minimum configuration like below.I can see plugin via WP admin under woocommerce main menu.but cannot see plugin from different role.That role can see woocommerce submenu.Only my custom ...
0
votes
0answers
16 views

Change logo based on WP user role login

I have figured a way how to change the logo using the custom logo hook. However, when I switched to the theme my clients want to use, the theme doesn't use the custom logo hook. I don't have much ...
0
votes
0answers
13 views

Restrict to content by user role + some pages

I need to add users with the following role: initial classes - with ability to see in the admin panel several pages and posts that relate to taxonomy - initial levels, other articles, posts, plugins ...
1
vote
1answer
98 views

Select other roles as custom post authors

I created a custom post type ("Organization"), and I've also created a custom user role ("Representative"). Also, I've ensured that the Representative role has read/edit/create/...
0
votes
0answers
8 views

Change Author user role permissions to enable them to see pages marked "Private"

Change Author user role to enable Authors to see pages marked "Private" I hope that explains what I'm trying to accomplish. I have no need of a plugin, just something for my functions file (...
0
votes
0answers
13 views

Hide users on users.php with a specific meta value

I am using the User Switching plugin in order to allow sales agents to place an order on behalf of a customer. I want to allow sales agents to switch into their customers only instead of all customers....
0
votes
0answers
25 views

Switch to user link shortcode

I am using the User Switching plugin in order to allow sales agents to place an order on behalf of a customer. I have a page called My Customers which uses toolset to return a list of their customers. ...
0
votes
0answers
24 views

Allow Custom Role to edit a custom post type category

I have created a custom role, and have given access to edit a custom post (from another plugin). This works, but the user with the custom role can edit the post, but not set the categories. They ...
1
vote
0answers
18 views

Change name of users parameter called 'Roles'

I'm trying to change the name of the parameter of all users called 'Roles' to 'Levels'. I already tried to find it in the database of the website but nowhere this row with parameters was. Is it ...
1
vote
0answers
35 views

Hiding posts by other users and non-logged in

I've been looking for a plugin that works like a private journal and had no luck. The closest I found so far was this guide from buddyforms. In terms of functionality, this is pretty close to what I ...
0
votes
0answers
10 views

how check user roles with most security

hello everyone i want to check user roles for my custom theme . users according to their roles have different accessibility to site . i check their roles with this code ,I'm worried I did something ...
0
votes
0answers
22 views

Manage roles and capabilities without loads of code

I want to manage user roles and permissions/capabilities. I've tried several plugins, but they save their settings to the database. Since we're running multiple environments with seperate databases, ...
0
votes
1answer
41 views

How to keep the capability of users and disable Gutenberg editor in WordPress?

I disabled Gutenberg web builder/ editor using the following code: add_filter( 'use_block_editor_for_post', '__return_false' ); Somehow this impacted contributor's capability to submit post for ...
0
votes
0answers
9 views

Attribute Posts to User via Custom Field Value

I have a custom user role on my website "reviewer" of which one can view an archive page, just like a normal author, where published posts are attributed to that user and displayed in ...
0
votes
0answers
28 views

wp_update_user very slow

I am changing a user role with a custom endpoint. If the ID is incorrect, it fails right away and I get my error message. If it is successful however, the role is updated in the backend right away but ...
0
votes
1answer
144 views

Display posts with id equal to relationship value

I am trying to solve the following scenario in wp-admin: When an agent logins in he should only be able to see the actors that have a relation with him. (on page: wp-admin/edit.php?post_type=actor) In ...
0
votes
2answers
38 views

How to add custom JavaScript in functions?

I want to write some JavaScript and want to assign that to a custom capability, I explored a lot but unfortunately none of them worked, any help will be appriciated. My codes are as below: add_action('...
0
votes
1answer
24 views

How to write conditions based on user capabilities not on user role?

How to write conditions on capabilities not on user role?
0
votes
3answers
154 views

Hide custom post type by user roles

I created a custom post type ( Customers ) and i want to show posts of this post type just to the users with Customer role. there is any way without or with plugin?
0
votes
0answers
28 views

Disable update for custom post type

I have a custom post type and all posts of this kind is created during a scheduled event which fetched all data from an external API. So far so good, the problem now is that I would like to prevent ...
0
votes
1answer
41 views

Recent posts on homepage: different thumbnail based on logged in status and post category

This works well on archive.php, but not working on the homepage. For some reason, the first statement doesn't get applied: if a post is in Members category and user is not logged in, it's supposed to ...
0
votes
0answers
23 views

See which user role / capability is needed to use a plugin

I have installed a plugin (https://de.wordpress.org/plugins/food-and-drink-menu/) for which I want to assign permissions to a normal "editor" user. I found the plugin "User Role Editor&...
1
vote
1answer
26 views

Logout users upon login, based on caps/role?

To reduce spam registrations, users are assigned the pending role until they're vetted (at which point they're assigned the subscriber role). The pending role has no capabilities. When pending users ...
0
votes
0answers
12 views

Custom Post Type Capabilities - delete_published not working

For some reason, the 'delete_plublished_articles' capability on my custom post type doesn't work. I'm removing this capability from the administrator role, but I'm yet able to delete published posts. ...
0
votes
0answers
15 views

Update a custom role with new capabilities

I have created a custom user role for a site where the role can do almost anything an administrator can do minus a few capabilities like: -Update, Delete, Upload plugins -Change, Delete, Upload Themes,...
0
votes
1answer
32 views

Hide front-end from every logged out user and redirect them to the default login page

I want to hide the front-end from every visitor/logged out user. To see the front-end, every user must have been registered and logged in. Any visitor that's logged out should be redirected to the ...
1
vote
0answers
11 views

Admin access for custom user capabilities

I've got a site with a lot of custom user roles and capabilities, and I'm trying to allow users with a new capability 'admin_panel_access` (set up via User Role Editor) to access the admin dashboard. ...

1
2 3 4 5
27