Do you want to send an email notification whenever you change any user role for letting him know that he/she become Administrator, Author, or Editor etc?
Then you came to the right place.
Here:
We have posted the simple code that will let you automatically send an email notification when user role changes and it doesn’t even need any plugin.
So let’s get started.
Send Email When User Role Changes
We have created a custom function that we embedded below, just copy the code and paste it into your WordPress theme‘s functions.php file.
After that:
Save the file.
Code to Send Email Notification When User Role Changes
That’s it.
If you have any questions related to WordPress, let us know in the comment box.
Don’t forget to share this Send Email When User Role Changes