Change WooCommerce client user role based on last order time
-
Can’t realize what is the best way to solve this problem. I have VIP customers (“vip_customer” user role) and regular customers (“customer” user role). There is a lot of ways how to turn a customer into a VIP customer based on different rules: order total price, count of orders, etc… But I can’t find the solution for how to change the user role from “vip_customer” to “customer” if his last order was 3 (for example) months ago. Do I need to use WP-Cron (once per day) for that because running through all VIP users whenever function.php is working is kinda expensive?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Change WooCommerce client user role based on last order time’ is closed to new replies.