Last active
July 2, 2018 04:40
-
-
Save butlerblog/d5d418511538ff2c2d48 to your computer and use it in GitHub Desktop.
suppress WP from sending password and email change emails
This file contains 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 | |
/* | |
* Documentation | |
* https://codex.wordpress.org/Plugin_API/Filter_Reference/send_password_change_email | |
* https://codex.wordpress.org/Plugin_API/Filter_Reference/send_email_change_email | |
*/ | |
// Add below this line to functions.php | |
// Add this to prevent sending password change notification: | |
add_filter( 'send_email_change_email', '__return_false' ); | |
// Add this to prevent sending email change notification: | |
add_filter( 'send_password_change_email', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment