Skip to content

Instantly share code, notes, and snippets.

@butlerblog
Last active July 2, 2018 04:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save butlerblog/d5d418511538ff2c2d48 to your computer and use it in GitHub Desktop.
Save butlerblog/d5d418511538ff2c2d48 to your computer and use it in GitHub Desktop.
suppress WP from sending password and email change emails
<?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