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

Embed Snippet on Your Site

MemberPress: Disable Admin Password Lost/Changed Email

Disable the MemberPress Admin email notification for password lost/changed.

Code Preview
php
<?php
function mepr_disable_admin_pw_changed_email( $recipients, $subject, $message, $headers ) {
  if( strpos( $subject, 'Password Lost/Changed' ) !== false ) {
    $recipients = array(); // no recipients
  }
  return $recipients; 
}
add_filter( 'mepr-wp-mail-recipients', 'mepr_disable_admin_pw_changed_email', 11, 4 );

Comments

Add a Comment