Skip to content

Instantly share code, notes, and snippets.

@cartpauj
Last active August 25, 2021 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cartpauj/7f6e1e246602e00fd34b37cb2dcb75f1 to your computer and use it in GitHub Desktop.
Save cartpauj/7f6e1e246602e00fd34b37cb2dcb75f1 to your computer and use it in GitHub Desktop.
Disable MemberPress Password Lost/Changed email
<?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