I have created a number of customer roles which show up and can be selected in your checkbox UI. They don’t get saved though. Non-custom ones do get saved.
I’m on PHP 8.3 and WordPress 6.5.3 , nothing shows in the PHP error log.
//============================================================================
function AddBungalookRole($RoleName, $RoleOptions)
// CREATE ROLES
//============================================================================
{
add_role("Bungalook_{$RoleName}", "Bungalook {$RoleName}", $RoleOptions);
}
//============================================================================
function CreateBungalookUserSecurityRoles()
// CREATE ROLES
//============================================================================
{
$RoleOptions = [
'read' => true,
'create_posts' => true,
'edit_posts' => true,
'edit_others_posts' => true,
'publish_posts' => true,
'manage_categories' => true,
];
AddBungalookRole('Newsletters', $RoleOptions);
AddBungalookRole('Orders', $RoleOptions);
AddBungalookRole('Plants', $RoleOptions);
AddBungalookRole('Reimbursements', $RoleOptions);
}
add_action( 'init', 'CreateBungalookUserSecurityRoles' );
]]>
So far is working with the current WordPress version, but it has been awhile since the last update. Any plans for future updates?
Thank you.
]]>Thanks for this great and simple plugin. Still working great for us – no complaints. It’s crazy that the underlying code already allows this but it’s not in the WP Core UI.
Just wondering, is the plugin is still being actively maintained?
Would be lovely to just have a bump for version compatibility every so often to avoid the dreaded “This plugin?hasn’t been tested with the latest 3 major releases of WordPress.” that destroys client/user confidence, even if the code is still perfectly compatible and working great.
]]>Hello, I’m having problems with the Page author when I suppose it has multiple roles. How could I manage that capabilities that keeps an author page?
]]>Error
]]>Hi.
First, thank you for taking over this plugin. It’s the only one like it out there!
Is there a way to make it work with custom roles? Currently, it only works with the default WordPress roles.
Specifically, it’s the User Roles and Capabilities plugin that I need it to work with, but even if I don’t use that plugin and create my own roles in code, Multiple Roles will only acknowledge the default WordPress roles.
Any help you can give would be greatly appreciated. Thanks again.
I’m using the latest version of WordPress and the latest version of Multiple Roles.
]]>Hi,
I’m the new maintainer of the plugin and will take over the work of Florian.
My plan is to have the plugin reopened soon, fixes are currently reviewed by the WordPress plugin team.
Best
Christian
Hi there,
This plugin is throwing a CSFR error. The only documentation we can find is that it’s probably because $_POST[‘md_multiple_roles_nonce’] isn’t set… could you maybe please assist with how we’d go about setting this correctly? Or what the other error could possibly be.
Thank you.
Thanks for this plugin.
I try to fire an action when someone has a new role, but with this plugin enabled the set_user_role hook is not working.
Is there an alternative
I got a notice from my wordfence today that this plugin has been removed from www.ads-software.com. Checking the main page of the plugin, it states that this plugin has been closed as of February 11, 2021 and is not available for download but it is temporary.
So is this plugin dead or not?
]]>Last updated 4months ago up to version 5.4.2…
Will this be updated anytime soon??
]]>Hi,
Is there a way to apply the multiple role automatically ?
like if the user subscribe or register assign additional role ?
e.g.
if user 1
sign up to form 1 add the role 1
sign up to form 2 add the role 2
so the user 1 is now had 2 roles which is role 1 & role 2…
thanks for the response
]]>Hello.
So I’m using the WooCommerce B2B Sales Agent plugin and I needed to add my retailers clients to the Sales Agent dashboard, that’s why I needed the Multiple Roles plugin, because the WooCommerce B2B Sales Agent only adds customers user roles to the dashboard of the Sales Agent. With this plugin I can make the retailers user roles both ‘customer’ and ‘retailer’ and make it appear in the dashboard. However (and since I have different prices for these roles) the prices that are shown to the ‘retailer’ change to be equal to the ‘customer’ when using this plugin. Can someone help me make the prices that appear to be the ‘retailer’s ones?
Thanks!
]]>Does this plugin allow users to choose more than one role on registration?
]]>Hi – Wordfence is reporting that the plugin may be abandoned.
Please advise the status of support for this very useful plugin.
Thanks.
Hi,
Nice plugin but thought I would provide feedback on two items:
1. Any chance you can add support for the latest version of WP (as it does work in it)
2. I am not sure one of your FAQ is correct. I remove all roles and the update occurs but the User roles do not get updated. I suspect WP now requires at least one Group.
= Can you remove all roles from a user? =
Sure. The user will still be able to log in and out, but won’t be able to access any admin screens or see private pages. However, the user will still be able to see the WP Toolbar by default, which displays links to the Dashboard and Profile screens, so clicking on those will result in seeing a permission error.
Hi There,
Love the idea of this add on and noticed another member created a support ticket for this same request but never responded to you.
Is it possible to add the ability for the user to select which role they have active in their profile from those that have been assigned by the admin.
You asked the requester for a test case as to this request.
On my website I use role based pricing. I can have wholesale accounts as well as trade accounts and I also allow drop shipping for some accounts.
Due to the above some users have two different possible pricing methods. With role based pricing I can have this change for different roles but under standard woo commerce settings there’s no way for a user to change between these roles.
With your plugin a user can be assigned the roles but for role based pricing its just going to use the one with higher privilege.
If my customers could change the between the roles they are assigned from within their profile it would allow for my pricing to change for them and save a lot of time in editing open orders before customers can finalise them.
If this is something you think you would be able to add to the plugin as a whole that would be wonderful, if not would it be something you would be interested in quoting for as a one off development?
Again thank you so much for your work!
]]>Just to let you know the plugin is 100% translated and ready to use in pt_BR.
I encourage other users to do the same to their language ??
If you need help approving your strings, please let the Polyglots Team know about it. https://make.www.ads-software.com/polyglots/
We have resolved the issue but wanted to report a conflict with the WooCommerce Catalog Mode, Wholesale & Role Based Pricing Plugin. When we create custom roles with that plugin they seem to be saved in the db as lowercase even if they are named as capitalized. If this custom role is selected on the user’s page as one of many roles, the custom role created does not save. But if the dropdown bulk edit on the User’s List page is used the custom role is saved. In any event the only way at this time to use both plugins together is to name the custom role using only lower case.
]]>Hi, I can see and select the roles when creating a new user, however, I’m unable to see this section when editing a user? Any assistance?
]]>As title says, I don’t see any roles listed in the roles column of the users screen (../wp-admin/users.php) while “multiple roles” plugin is activated. When I deactivate it all roles are displayed properly.
]]>Hi
Is there a way to add a second role after registration? I have a registration form on the front end of my site, I need to add another role to user once the user is registered.
Is there away to do this automatically by adding code to functions.php or anything please
Thanks
]]>Hello,
I did not find Multiple Roles setting page, does it support to set Multiple Roles to user by default?
Thanks, and have a nice day.
Alex
]]>Hello, i want to know if Multiple Roles plugin is compatible with AAM plugin (Advanced Access Manager). Im using AAM to control access of my users and mostly i use it to create New Custom Roles.
When installing / activating Multiple Roles and edit any user, the New roles created with AAM plugin appears in the users profile, but if i select any new custom role created with AAM and save the users profile it is not saving the custom role assigned.
Any ideas?
Thanks
Hi Florian,
Could you localize role names in the user edit screen please?
You just need to wrap the role name with the translate_user_role function
Thx mate
]]>I am currently using the following piece of code to display a user’s role on the front end, but it seems to only display the “main” role, or the role the user was assigned prior to the plugin installation. Is there a way to alter this to have it display ALL roles assigned to a user, or something that can be done with the plugin to give me the option of which role to display for each user?
<?php the_author_posts_link(); ?> - <?php
$aid = get_the_author_meta('ID');
$role = get_user_role( $aid );
$wp_roles = wp_roles();
$pretty_role = $wp_roles->roles[$role]['name'];
echo $pretty_role;
?>
]]>
Hi,
I can′t get it to work with User Roles and Capabilities plugin.
I choose some roles, but a when saving they all are unchecked so no role is asigned to the user.
Can you please help?
Thanks a lot
]]>My Multiple Role names are localized* and behave correctly in some admin areas, but not on Edit User or Add User pages.
Is it possible to support localizations on those pages?
* Example:
add_role('add_man', esc_html__( 'Addvertising Manager', 'my-own-theme' ),
Non Multisite Website with Version 1.1.3:
Create user with Multiple Roles: Error (“You do not have the privilege…)
Create user without roles: Yes! (Will become Subscriber)
Update existing user with Multiple Roles: Yes! Can do!
]]>Hello, I’m seeing an error “You can’t give users that role” when trying to edit any user while Multiple Roles in activated. The error appears when I click “Update User” even without having made any actual changes to the user. The error redirects me to /wp-admin/user-edit.php. When I deactivate the plugin I can edit the user successfully.
I’m using Capability Manager Enhanced to create and delete roles which I’ve pasted below. I have also deactivated this plugin as a test with no success.
The user in question does have 2 roles; however, I tested trying to save just 1 role which also triggered the error.
I’m happy to run any tests to help troubleshoot the issue. Any help is greatly appreciated!
]]>