Hey Ken, it does seem like this password reset email is not sent by WordPress, but by another plugin.
Could you paste that example second email you believe WP sends? Will verify
Hey Kuba, sure – thanks!
Site Title: NEO Compliance
Subject line: [NEO Compliance] Password Reset
Message: Someone requested to reset your password for [email protected] on NEO Compliance at https://neo.timbed.com
To reset your password visit the following address, otherwise just ignore this email and nothing will happen.
https://neo.timbed.com/?action=reset_password&mkey=abc0H1jyGNl9g8vL8s6qwe=email%40timbed.com
Hm, this definitely looks like a default WP email. Are you using any plugin that could interact with the user accounts? Ie. Membership plugin etc
Hi Kuba
It was the plugin MemberPress that took over and caused the override of the Notifications disable option.
MemberPress provided this little piece of sneaky code and it fixes the issue:
// Avoid unwanted password reset mail from MemberPress
function mepr_remove_recipients($recipients, $subject, $message, $headers) {
if(strpos($subject, '[NEO Compliance] Password Reset') !== false) {
$recipients = array(); //remove all recipients
}
return $recipients;
}
add_filter('mepr-wp-mail-recipients', 'mepr_remove_recipients', 11, 4);