problem role dhop manager
-
hi, I need the shop manager to change the role of registered customers, I entered this code.
function myextension_shop_manager_role_edit_capabilities( $roles ) {
$roles[] = ‘editor’;
$roles[] = ‘rivenditore’;
$roles[] = ‘subscriber’;
return $roles;
}
add_filter( ‘woocommerce_shop_manager_editable_roles’, ‘myextension_shop_manager_role_edit_capabilities’ );allows me to modify non-customer accounts, but the role curtain does not appear, I need the shop mager to change roles as before the update
I have
wordpress 5.5.2
woocommerce 3.7thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘problem role dhop manager’ is closed to new replies.