Questions tagged [user-roles]

Names for a set of user capabilities.

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

Different comments section for different user roles

I have website. in this website people can post complaints about customer satisfaction of companies. Company and complainer (who is author of this complaint post ) can do discussion under post. so i ...
7
votes
4answers
16k views

Allowing users to edit only their page and nobody else's

We currently have about 50 pages, each of which I want a user (eg, bob, rob, smith) to be able to edit only 1 page. For example, bob & smith each have their own page. I do not want bob to be ...
0
votes
0answers
5 views

Conditional editing CPT - using editor's role and author's usermeta

I have created a custom post type. Each author is attributed to a editor group when her/his account is created. This is save on the author's user meta I created two roles with administrator ...
0
votes
0answers
6 views

Change WooCommerce client user role based on last order time [closed]

Can't realize what is the best way to solve this problem. I have VIP customers ("VIP customer" user role) and regular customers ("customer" user role). There is a lot of ways how ...
0
votes
2answers
509 views

Filter and validate user role in registration

I want to show a select box for user roles in the registration form. I am using this model: /* ROLES IN LIST REGISTRATION */ // 1. Add a new form element... add_action( 'register_form', '...
0
votes
0answers
8 views

Wordpress user role uploaded images to a specific folder

I need a method to the specific user role images (e.g. author) upload to other media library (e.g. "wp-content/uloads/authors/"), not the original "wp-content/uploads/year/months...&...
0
votes
0answers
12 views

Changing user role after subscription is found [closed]

Im using Opal Membership plugin for real estate website. The problem is that it's only working for properties and i want to restrict other content as well (like pages, posts etc.) I want to use ...
0
votes
1answer
763 views

Allow non-admin users to access plug-in

I want users who are not Administrator to be able to use my Calendar plugin, but it is not available on the dashboard except to Administrator.
0
votes
2answers
66 views

WordPress custom post type capabilities issue

Using WP 5.2.4, I am registering my custom post type with this code: $args = array( 'labels' => $labels, 'public' => false, 'show_ui' => true, '...
0
votes
1answer
12 views

Remove add post for user role

I add new role with WP Members, I also use Publishpress and user role editor For my new role, I want to disable the capability to create posts (built-in not custom post), not only with CSS but the ...
0
votes
2answers
527 views

Create sub-administrator role that can do everything except use or see the code editor

I am doing the code work for a website that someone else will be managing. I'm worried that just telling them not to use the code editor for appearance or plugins won't be enough to stop them from ...
0
votes
0answers
12 views

WooCommerce limited role

I'm trying to make a custom Woocommerce role that only has access to the WooCommerce reports. The role needs to be able to see the sales reports, but not edit products or anything else on the website. ...
0
votes
0answers
17 views

How to only display all posts to a custom User Role?

I have a custom user role and I want to display all custom website posts to them, without letting them edit/delete them. Right now the custom post doesn't show up in their dashboard. I know it will ...
1
vote
1answer
24 views

Why is my Custom Post Type not showing up after adding capabilities?

I'm trying to add a custom post types with capabilities, so a custom user role can do certain things with them. Eventually the custom role is a Client, and the post a Website, and I want clients to be ...
0
votes
1answer
712 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 ...
1
vote
3answers
893 views

Why does get_posts only show results for Admins or logged-out users?

I use a get_posts() call with these arguments: array(6) { ["include"]=> string(14) "1633,1634,1635" ["post_status"]=> string(3) "any" ["post_type"]=> string(10) "attachment" [...
1
vote
0answers
9 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 ...
6
votes
4answers
6k views

How can I hide a category from Contributors in the edit/add new post screen?

I have a situation where I need to hide a specific category and it's children from users who are logged in as Contributors. I don't want them to see this category and it's children in the categories ...
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 [closed]

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 ...
1
vote
1answer
655 views

wp_dropdown_roles() to replace option value = code

I'm trying to replace a hardcoded dropdown list of roles in a plugin. Currently this is the code: echo '<select name="xf_user_role_' . $id . '" id="xf_user_role_' . $id . '">'; ?> <...
1
vote
3answers
839 views

Allow Contributor to edit but not update a published post

I have a client that wants to manage the editing process on a CPT called Floor Plan. They want to be able to preview and approve/deny all edits to a Floor Plan. I thought I had a solution by having an ...
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?
2
votes
1answer
741 views

How to make an author archive only for certain user role and show related CPT

Scenario I made a CPT where I'm taking the stakeholder's ID as a custom field. All the stakeholders are actually a WordPress' Registered User with a different role stakeholders - because at some point ...
3
votes
3answers
2k views

Programmatically changing role information; editing role name and deleting

I am making system where I am delegating a lot of functionality to the front end of a system using Wordpress. I have listed all the roles (most of the custom) and need to ability for a logged in user ...
5
votes
2answers
2k views

How to auto-translate custom user roles?

I developed a small plugin that adds (or to be more precise: first deletes then adds again) some custom user roles. Each of these roles is set up in a way like this: function ...
7
votes
3answers
6k views

wp_update_user not updating

In desperation I am asking for help in this forum too - if someone (ANYONE!) could take a look a this post and see if they could help I'd be eternally grateful http://wordpress.org/support/topic/...
2
votes
2answers
21k views

after login that will redirect user role into a page

I am trying to create a hook that when a user login, it check the user role.. if the user role is jsa_contributor then it redirect into specific page. but it seems my code didn't work. This is the ...
1
vote
1answer
7k views

Hide Admin Menu for Specific User ID who has administrator Role

I am trying to hide almost every single admin menu from wordpress dashboard for a specific user id who has administrator role. I want to give that user only option to edit a certain custom post type ...
1
vote
2answers
44 views

What are some best practices for user exit strategy?

We have a key employee who is resigning. I would prefer to retain her attribution for stories she has posted for our institution. My first thought was to create a custom "resigned" user role ...
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 ...
5
votes
5answers
11k views

How to change the email notification recipient (user) for new comments?

How do you change the user that gets the notification email announcement for new comments and comment moderation? WordPress sends the notices to the admin user. My client is the editor of the site. I ...
1
vote
2answers
24 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
28 views
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 ...
0
votes
1answer
576 views

Custom user role not working as expected

I've defined a custom user role in functions.php called "Dashboard Admin" with the capabilities defined below. The site has a number of custom post types- all with capability post- and I'd basically ...
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
1answer
673 views

DISALLOW_FILE_EDIT constant being ignored

In my wp-config.php file, I have the line: define('DISALLOW_FILE_EDIT', true); I always include this on all sites as standard, and it's always worked exactly as expected. However, I've only just ...
0
votes
1answer
547 views

WooCommerce get_author_posts_url() - Author URL redirecting to shop base

I've noticed that when I have WooCommerce enabled and use get_author_posts_url() it automatically redirects to the 'shop base' when the user's role is Customer. When I change the user to Subscriber ...
1
vote
1answer
2k views

How to allow registered users to change their user role through frontend?

From time to time i want to give my registered users the chance to upgrade their user role by themselves for free. I tried this by writing a little plugin, but sady i can't get the html form to show ...
1
vote
3answers
1k views

Tried to create a user role that can only edit user information, but my test account cannot view the dashboard. What am I missing?

One of our websites includes an online store, which alongside phone sales is one of two ways customers can purchase our products. All of our customer info is stored in a program called Orderwise, ...
1
vote
1answer
2k 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
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 ...
3
votes
1answer
689 views

How to customize wp_signon()

I am trying to get a customized sign on process. The features that are absent in WordPress by default are the following: Allow user to choose a password at the time of registration. Allow user to ...
3
votes
2answers
1k views

Allow user to Publish, but not Edit or Delete

I saw post Allow Content Author to Publish, But Not Edit or Delete but is not the same I need and I cannot ask there because of reputation ¬¬ I need an user that can publish any user's post but can't ...
0
votes
1answer
927 views

Add role selector to custom registration page

I have sucessfully integrated this code in functions.php //1. Add a new form element... add_action( 'register_form', 'myplugin_register_form' ); function myplugin_register_form() { global $wp_roles; ...
15
votes
2answers
41k views

Where are available Roles Defined in the wp_ database?

I got on the list to test a private beta of a plugin I'm using on a multisite network. The plugin authors have code in there to add a custom role. They have a bug that removes the ability to give a ...
0
votes
3answers
6k views

I need to assign a role to visitors/guests

Is there a way to create a 'role' in WordPress for a guest? I am using a role visibility plugin which lets me choose the type of visibility to each role. However a Guest hasn't got a role. I can ...
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
1answer
2k views

Disable `create_post` for built-in post type

I have some custom user roles for proofreaders which do not have the capability to create posts of my custom post types. Unfortunately I am unable to find out how to remove that capability for the ...

1
2 3 4 5
26