User Role Editor Pro is available for purchase. The only way to pay currently is a wire transfer to Tinkoff bank. Fill this form to send the invoice request.
Test period during which User Role Editor Pro is available for free is reduced down to 1 month. 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?
Shop Manager can not edit user
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: Shop Manager list users capability
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):
WooCommerce allows shop manager to edit customer user
Really shop_manager can edit only users with ‘customer’ role. WooCommerce manage this using this code: Shop manager can edit customers only
Shop manager can edit customers only
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:
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 Free for 3 months – it’s the new and the only membership level available at role-editor.com from March 8th, 2022.
Just subscribe or upgrade the existing account and you will get role-editor.com membership for 3 months for free. You will not pay a cent until current free membership period expiration, even if a paid membership will return back. Read more User Role Editor Pro Free for 3 months. ›