$pass_change_email =
apply_filters( 'password_change_email',
$pass_change_email,
$user,
$userdata );
$pass_change_email['message'
] =
str_replace( '###USERNAME###',
$user['user_login'
],
$pass_change_email['message'
] );
$pass_change_email['message'
] =
str_replace( '###ADMIN_EMAIL###',
get_option( 'admin_email'
),
$pass_change_email['message'
] );
$pass_change_email['message'
] =
str_replace( '###EMAIL###',
$user['user_email'
],
$pass_change_email['message'
] );
$pass_change_email['message'
] =
str_replace( '###SITENAME###',
$blog_name,
$pass_change_email['message'
] );
$pass_change_email['message'
] =
str_replace( '###SITEURL###',
home_url(),
$pass_change_email['message'
] );
wp_mail( $pass_change_email['to'
],
sprintf( $pass_change_email['subject'
],
$blog_name ),
$pass_change_email['message'
],
$pass_change_email['headers'
] );
} if ( !
empty( $send_email_change_email ) ) { /* translators: Do not translate USERNAME, ADMIN_EMAIL, NEW_EMAIL, EMAIL, SITENAME, SITEURL: those are placeholders. */
$email_change_text =
__( 'Hi ###USERNAME###,
This notice confirms that your email address on ###SITENAME### was changed to ###NEW_EMAIL###.
If you did not change your email, please contact the Site Administrator at
###ADMIN_EMAIL###
This email has been sent to ###EMAIL###
Regards,
All at ###SITENAME###
###SITEURL###'