However, you can use the hook to apply whatever you want. There are several occasions where you want to do something, when an order is complete.
The use case is this. You want to add the new user/customer to a specific group, after buying a specific product. The steps below explain the logic of the snippet following. [Read more…] about Add user to group after product purchase in WP