How To Send Email Notifications When User Role Changes In WordPress

Few weeks back, I shared a simple script which sends email notifications to users when someone or they update their profile. Here’s a simple script which sends email notifications when user role changes in WordPress. It’s a great way to notify your site’s users about role changes.

It’s must-use snippet if you’re running a WordPress installation with bbPress and/or BuddyPress community plugins. Just drop the following snippet to your current theme’s functions.php file: