Questions tagged [user-roles]

Names for a set of user capabilities.

461 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
238 views

Custom post type capabilities require "create_posts" to access the edit posts list page

I have a custom post type and a custom user role that I want to be able to do everything but delete and create this post type. However, this user role can't view the dashboard's list of posts for ...
Zach Wat's user avatar
4 votes
2 answers
2k views

Do not allow users to create new posts and pages

I'm defining a new user role called Proofreader and as the name says, users of this group should be able to read and also edit the posts and pages. But I do not want them to create new ones. With my ...
Sam's user avatar
  • 435
4 votes
1 answer
1k views

Contributors missing from author dropdown

I have a problem with Quick Edit post functions. When I add new users as Contributors, they don't appear in author dropdown list. I am using Role Scoper plugin for some roles. But I tried to ...
Zavalin Ivan's user avatar
3 votes
0 answers
55 views

Locking Down Wordpress Application Password Permissions / Capabilities

I am working on a Wordpress installation where we recently decoupled the frontend into a NextJS application that is no longer hosted on the same domain as the admin. We are accessing data etc through ...
some weird rando's user avatar
3 votes
0 answers
746 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 ...
Srihari's user avatar
  • 224
3 votes
1 answer
2k views

Author Role - Allow editing of Gallery images

Is it possible to give the 'Author' role the capability of editing image titles and captions on post's they have created ? I have a number of users set to 'Author' , but when i've tested it's not ...
andytc's user avatar
  • 31
3 votes
1 answer
704 views

How do I allow anyone to edit a post -- but not access dashboard

I have a a business directory using premium press theme ---- I want all registered users -- to be able to edit and publish, upload images to any listing that has not been secured by payment. I do ...
mark's user avatar
  • 31
2 votes
0 answers
41 views

How to protect content from public users and limit access to certain roles in WordPress 2023?

There are hundreds of content protection plugins and role managers, however in my current case I need a custom solution. The customer wants that only "logged in users" are to be able to read ...
Blackbam's user avatar
  • 535
2 votes
0 answers
70 views

Filter custom posts based on the user role of author

I am using CPT plugin to create new custom post type, and along with I am using elementor and jet smart filters to display list of posts in the frontend and filter them. I am trying to filter out ...
Malani's user avatar
  • 21
2 votes
0 answers
188 views

Clone wp-admin/users.php (Users Admin Page)

I have created a new page in admin. I need to show all the users in this page(like Users admin page). The reason for this is because i want to show certain custom user roles only on this page. I tried ...
Thowzif Abdullah's user avatar
2 votes
1 answer
639 views

Custom roles can't access to wp-admin

i'm trying to create a custom role, very similar to admin but without the capabilities to edit/delete plugins. Since i don't wont to use plugin for that i've edited the functions.php file adding ...
Jack's user avatar
  • 21
2 votes
1 answer
41 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 ...
Goma's user avatar
  • 29
2 votes
0 answers
111 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; ...
nelakay's user avatar
  • 21
2 votes
0 answers
96 views

Custom roles showing HTML entities in title form field

I've created a few custom roles. I'm noticing that when editing a post in the Admin Area, any characters with HTML entities in the title form field are showing the HTML entity code, but only for users ...
Mattimator's user avatar
2 votes
0 answers
578 views

Gutenberg Featured-Image-panel missing when user with custom role edits Custom Post Type

For a Wordpress project I made a Custom Post Type in the usual manner. Also i made a custom role. I want users with that role to be able to make, edit and delete this CPT. I added the apropriate ...
Edwin Snotje's user avatar
2 votes
0 answers
304 views

Limit users by custom taxonomy and user roles

This is not duplicated post! I working on the custom theme and have 2 taxonomies: bezirk and ortsgruppen. bezirk acts like main group and ortsgruppen is the sub group under bezirk. I need to asign ...
Ivijan Stefan Stipić's user avatar
2 votes
0 answers
489 views

Allow Block Editing By User Role

I am looking to see what options there are for Gutenberg (or via a plug-in) to allow users with certain roles to edit blocks on pages. Here is a general layout. Multiple pages are in the site, and ...
Joel F.'s user avatar
  • 21
2 votes
5 answers
286 views

Redirect after users complete profile form

I have a user registration form implemented and working correctly on the front end of a website. My main issue is that I would like to redirect a user after completing the profile form. My idea ...
laluk's user avatar
  • 21
2 votes
0 answers
42 views

How to allow a particular role like Contributor be able to only view pending comments and approve them?

I want to allow Contributor role, of which does not have access to Comments (if it was allowed I disabled with adminimizer), to be able to view only Pending comments, and be allowed to approve the ...
user6686780's user avatar
2 votes
0 answers
164 views

Users Unable to Access Dashboard/Posts/Pages

I'm trying to set user roles in order for my users to access the wp-admin Dashboard section and post. I was able to create roles and give multiple users Shop Manager/ Editor roles. But when they login ...
gshustle's user avatar
2 votes
0 answers
72 views

Keep user’s privileges on accessing contents in JSON response

I use WordPress REST API plugin to fetch WordPress stuff on a mobile app. What Access manager plugin keeps the privileges on REST API responses? I want restrict access to certain posts, categories ...
DummyBeginner's user avatar
2 votes
0 answers
160 views

Add custom capabilities to existing custom post type

The only way I can find to associate post types with custom capabilities is during the register_post_type function. I'm looking to add a capability for a certain role (my_role) for a post type that ...
davidmnoll's user avatar
2 votes
0 answers
164 views

Allow role to edit users at lower level with only specific metadata

How to allow a custom role, company-administrator, to be able to edit/create/delete users lower than their level, subscriber, where some metadata is matched? To elaborate: I'm making a membership ...
mistertaylor's user avatar
2 votes
0 answers
81 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 ...
gdaniel's user avatar
  • 3,241
2 votes
1 answer
1k 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 ...
Mayeenul Islam's user avatar
2 votes
1 answer
94 views

Users with custom roles can't read each other's comments

My site has a custom role ("coach") with its own set of capabilities (via map_meta_cap along with a few built-in roles). Each user is assigned a page on the site that they "own" and can edit (via a ...
Chris Van Patten's user avatar
2 votes
2 answers
137 views

Unify the roles and caps?

I installed several plugins(buddypress-docs,achievement,bbpress), each one create capabilities for their own post_type. I would prefer to make all roles and capabilities unified into one system, Is ...
Jenny's user avatar
  • 1,747
2 votes
0 answers
85 views

Selectively applying action based on role

I've added an action to my functions.php file that forces a plugin (Content Scheduler) to act on posts, even when it wasn't explicitly enabled by the person writing the post. I've got that working, ...
Adam Rice's user avatar
  • 291
1 vote
0 answers
10 views

Frontend delete CPT post with custom role user

I am building a custom frontend where custom role members (created with User Role Editor) can add and edit spots. "Spots" are a custom post type registered like this: register_post_type('...
gl03's user avatar
  • 111
1 vote
0 answers
9 views

Easiest way to create Reviewer Role: Can preview Drafts (and Private Pages) but not Edit them

This seems a bit of a hole in Wordpress Roles. I have a site with many cooks (Editors). I would like to give some of them read-only access to Draft and Private materials. This post goes a little way; ...
Chris Pink's user avatar
1 vote
0 answers
61 views

How to create a User Role and give permission to only use Web Stories plugin?

I want to create a new user role "Story Maker" with only the "Google Web Stories" plugin shown in the dashboard for the user to create and publish stories. I don't want the user to ...
Frankie's user avatar
  • 11
1 vote
0 answers
37 views

Increase by one the user counter on specific role

Hi i work on this code to increase by one the total users at users.php (fake counter) function my_fake_views($args) { $users_counts = count_users(); $total_users = $users_counts['...
George Ch's user avatar
1 vote
0 answers
60 views

'upload_mimes' filter seems to be restricting viewing/downloading as well

I am trying to allow administrators to upload SVG files using upload_mimes filter. function custom_upload_mimes( $mimes ) { // Allow additional mime types for administrators if( ...
Kristián Filo's user avatar
1 vote
0 answers
315 views

Parent User and Child User - relate users

I need to create a system in which I have 2 types of users: Company User (C) and Employee User (E). I need C to be able to register as many E as necessary and for C users to be able to publish ...
naber brene's user avatar
1 vote
1 answer
70 views

Add, edit specific CPT with custom role

Who can help me with roles and capabilities? I am stuck on this and I need some help. I want a role that only can add, remove edit etc. a specific CPT. What I have so far add_action('init', function(){...
Ben's user avatar
  • 13
1 vote
1 answer
481 views

Remove Capabilities from WP admin for specific user role

I am trying to remove some menu-links capabilities from the wp-admin for a user role called wsm. I have tried many ways and when i just add the code below it will remove those links from the menu for ...
Marc Tzjacker's user avatar
1 vote
0 answers
378 views

Custom post types as sub menu pages and role capabilities issue

I'm working on this: Create a menu entry in the admin panel name "Products" Have a dozen of custom post types, all as submenus items of my admin menu "Products" entry Allow a role ...
Bardyl's user avatar
  • 111
1 vote
1 answer
291 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/...
user2806026's user avatar
1 vote
0 answers
46 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 ...
Excelle's user avatar
  • 11
1 vote
0 answers
21 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. ...
PenguinBegins's user avatar
1 vote
0 answers
69 views

My subscriber has the "edit comment" capability but can't edit comment

When i use the wp_get_current_user function to display all informations about my user (subscriber), it shows that i can edit comment : I tried to display an edit comment button next to each comment ...
PrescilliaDSD's user avatar
1 vote
0 answers
41 views

Wordpress multiple custom post types capability conflict in a single menu

I have been trying really hard to find an answer to resolve a issue I am having but not successfull so far. So If there is a solution exist, Please just give me the link / reference to it. Let me ...
Waqas Ahmed's user avatar
1 vote
0 answers
13 views

I want to submit multiple users if checkbox is checked

The following code is getting all terms and see if any one of them is checked or not. If any term is checked a form should show under the selected checkbox with email, the username(auto-generated) and ...
Ail Raza's user avatar
1 vote
0 answers
25 views

Protect sequence of pages with same password for each of two groups of users

I'm currently creating a home page (learning environment) with wordpress. It should serve for an experimental study with two conditions. Based on the condition a participant will be assigned to, he or ...
Nadine M.'s user avatar
1 vote
0 answers
235 views

WP_Query with meta_query for children

I'm using WooCommerce and it has a lot of plugins to handle different stuff. The one thing needed by the client that no other plugin manages correctly is which variations can be visible for each user ...
ZioCain's user avatar
  • 111
1 vote
0 answers
20 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. ...
Edegist's user avatar
  • 133
1 vote
0 answers
118 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 ...
Avijit Palit's user avatar
1 vote
1 answer
26 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 ...
Jim Worrall's user avatar
1 vote
2 answers
638 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? ...
ma ja's user avatar
  • 125
1 vote
1 answer
357 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? ...
zzzlucid's user avatar

1
2 3 4 5
10