© 2024 fjorge. All rights reserved.
How do I send an automatic email to my WordPress users to let them know that their user role has changed?
![](https://cdn.prod.website-files.com/66170974d53f5061ec8f72ec/663e6812de1b5491cb1bdd30_Blog%20Image%209.jpg)
A few weeks ago we developed a site where the client wanted multiple types of customers, each having a different discount volume. We were able to do this simply by creating a few different new user types. They also wanted an automatic email to be sent out whenever a customer type (WP user role) was changed letting their customer know. The following is the code we placed in the theme's functions.php file to do this.
Ready to start a project?
We build systems that turn complex problems into simple solutions, making it easier for you to run your business.