Created
July 23, 2019 21:14
-
-
Save endurtech/5593c2992a138dd81b9e26d103fb688e to your computer and use it in GitHub Desktop.
Untested, still in development
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| ** Disables the user email when a user changes their email address | |
| ** Simply insert into your theme functions.php | |
| ** https://endurtech.com/disable-wordpress-user-notification-email-when-user-email-changed/ | |
| */ | |
| function xuser_email_upon_email_change() | |
| { | |
| return false; | |
| } | |
| add_filter( 'send_email_change_email', 'xuser_email_upon_email_change' ); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment