MemberPress

Avoid unwanted password reset mail from MemberPress

add_filter( 'mepr-wp-mail-recipients', function( $recipients, $subject, $message, $headers ) {
  if ( strpos( $subject, 'Password Reset') !== false ) {
    $recipients = []; // Remove all recipients.
  }
  return $recipients;
}, 11, 4 );

Last updated