Home / Disable / MemberPress: Disable MemberPress Password Lost/Changed Email
Duplicate Snippet

Embed Snippet on Your Site

MemberPress: Disable MemberPress Password Lost/Changed Email

Adding this code snippet will disable the MemberPress Password Lost/Changed notification email.

Code Preview
php
<?php
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 );

Comments

Add a Comment