Is it safe not to use "customer" role at all?
-
Hello,
I’m building a website where registered users and customers are considered the same entity and they can of course buy products, but should also have author priviliges. So, I was initially stuck with the dilemma: Convert all users to “customer” with author privileges or convert them to “author”? Trying to figure out what to do I came across this line:
if ( ! $user || ! in_array( 'customer', (array) $user->roles ) ) {
(File: plugins\woocommerce\includes\class-wc-webhook.php / Line:154 WooCommerce version 2.3.8)This is the only line, WooCommerce checks for ‘customer’ role specifically. So, after this I’m really puzzled!
Should I:
a. Convert all to “author”?
b. Convert all to “customer” with author privileges?
c. Keep both roles, but with equal priviliges?
d. Other solution?Thanks in advance!
- The topic ‘Is it safe not to use "customer" role at all?’ is closed to new replies.