Restricting Referrers by User Roles
Using the WooCommerce Refer a Friend plugin, you can restrict referral by user roles for both types of discounts:
- Referrer Discount
- Referee Discount
Go to WooCommerce > Refer a Friend. Here you can configure general user role settings for both referrer and referee discounts.
To Restrict Referrer Discount based on User Roles:
- Go to Referrer Discount settings.
- Checkmark to enable discount for the referrer.
- Go to ‘User Roles’ to specify user roles who can refer friends and earn discounts (Leave empty to enable it for all users).
- Choose from the following user roles:
- Administrator
- Editor
- Author
- Contributor
- Subscriber
- Customer
- Shop manager
- Wholesale
- B2B
- Retailer
- After selecting the allowed user roles and excluding the restricted user roles, save the changes to apply the new settings.
To Restrict Referee Discount based on User Roles:
- Go to Referee Discount settings.
- Checkmark to enable discount for a referee.
- Go to ‘User Roles’ to specify user roles who can use the referral code (Leave it empty to enable it for all users).
- Choose from the following user roles:
- Administrator
- Editor
- Author
- Contributor
- Subscriber
- Customer
- Shop manager
- Wholesale
- B2B
- Retailer
5. After selecting the allowed user roles and excluding the restricted user roles, save the changes to apply the new settings.
