Last active
August 25, 2021 15:14
-
-
Save cartpauj/7f6e1e246602e00fd34b37cb2dcb75f1 to your computer and use it in GitHub Desktop.
Disable MemberPress Password Lost/Changed email
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 | |
// Copy the lines below this one into a plugin like Code Snippets (run everywhere type) | |
function disable_admin_pw_changed_email_memberpress($recipients, $subject, $message, $headers) { | |
if(strpos($subject, 'Password Lost/Changed') !== false) { | |
$recipients = array(); // no recipients | |
} | |
return $recipients; | |
} | |
add_filter('mepr-wp-mail-recipients', 'disable_admin_pw_changed_email_memberpress', 11, 4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment