User Role Editor Pro version 4.63 was published at August 3rd, 2022. It includes few different fixes and new feature added to the “Posts/Pages edit restrictions” add-on.
Read more User Role Editor Pro version 4.63
User Role Editor Pro version 4.63 was published at August 3rd, 2022. It includes few different fixes and new feature added to the “Posts/Pages edit restrictions” add-on.
Read more User Role Editor Pro version 4.63
User Role Editor Pro is available for purchase via 2 payment ways.
1) It’s possible to pay via Stripe generated payment link. Contact me and point what membership/subscription plan did your select. I will email you a correspondent Stripe payment link back. Email screenshot with information about payment made to support@role-editor.com to get role-editor.com active user account in 24 hours.
2) For the legal entities only – a wire transfer. Fill this form to send the invoice request.
User Role Editor Pro is available for free 1 month test period. Select “Free for 1 month” membership level if you wish to start from thorough testing of User Role Editor Pro before buy it.
WooCommerce built-in role “Shop Manager” (shop_manager) by default can see the list of users and edit/delete users with ‘Customer’ role. What if you wish that shop manager can only see the list of users, but can not edit/delete them?
Direct step is open ‘shop_manager’ role in User Role Editor and revoke ‘edit_users’ and ‘delete_users’ capabilities from it. But you will see that this role has the only ‘list_users’ capability in the “Users” group:
What’s the mess? How such role can edit users with ‘Customer’ role? WooCommerce adds to shop_manager permissions to edit users the fly (got from the woocommerce/includes/wc-user-functions.php, version 6.4.1):
Really shop_manager can edit only users with ‘customer’ role. WooCommerce manage this using this code:
As you can see from lines 505 and 543 WooCommerce allows to change this via woocommerce_shop_manager_editable_roles
filter. So returning to our prime purpose – prohibit to Shop Manager edit users, we can use this code:
add_filter('woocommerce_shop_manager_editable_roles', 'shop_manager_read_only', 10, 1);
function shop_manager_read_only( $roles ) {
return array();
}
Just place it to the end of the active theme functions.php file or put on the site as a Must Use plugin. Shop Manager will can not edit users with customer role as a result.
User Role Editor Pro version 4.62.1 was published at March 29, 2022. It’s the bug fix release related to the previous “Gravity Forms Access” add-on update. Read more User Role Editor Pro version 4.62.1
User Role Editor Pro version 4.62 was published at March 7th, 2022. Read more User Role Editor Pro version 4.62