Not working for multiple user roles
-
This plugin will only work for users that have either Administrator or Shop Manager roles listed as their first role. It will not work for multiple roles.
Please change your code where it looks at the user role to search for those roles in the entire array, instead of just the first element, $role[0].
E.g: rearrange-woocommerce-products.php:line 39
– if($role[0]==’administrator’){
+ if(in_array(‘administrator’, $role)){
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Not working for multiple user roles’ is closed to new replies.