The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Snippet · PHP

MemberPress: Disable the Default WordPress Password Reset Link E-Mail

Shared by Divyesh kakrecha · June 1, 2026

37 views
Back to Snippets

If the “Disable Password Fields on membership registration forms” option is active in MemberPress settings (Dashboard > MemberPress > Settings > Account tab), MemberPress will trigger the default WordPress email containing a password reset link. This code snippet will prevent that email from being triggered.

function mepr_disable_password_reset_email( $recipients,  $subject, $message, $headers ) {
  $set_password_notification_subject = MeprHooks::apply_filters( 'mepr_set_new_password_title', sprintf( __( "[%s] Set Your New Password", 'memberpress' ), MeprUtils::blogname() ) );
	
  if ( $subject == $set_password_notification_subject ) {
    $recipients = array();
  }
	
  return $recipients;
}

add_filter( 'mepr_wp_mail_recipients', 'mepr_disable_password_reset_email', 10, 4 );
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments