Filters the contents of the email sent when the user's password is changed.
Parameters
$pass_change_emailarray
{ Used to build wp_mail(). @type string $to The intended recipients. Add emails in a comma separated string. @type string $subject The subject of the email. @type string $message The content of the email. The following strings have a special meaning and will get replaced dynamically: - ###USERNAME### The current user's username. - ###ADMIN_EMAIL### The admin email in case this was unexpected. - ###EMAIL### The user's email address. - ###SITENAME### The name of the site. - ###SITEURL### The URL to the site. @type string $headers Headers. Add headers in a newline (\r\n) separated string.}
$tostring
The intended recipients. Add emails in a comma separated string.
$subjectstring
The subject of the email.
$messagestring
The content of the email. The following strings have a special meaning and will get replaced dynamically: - ###USERNAME### The current user's username. - ###ADMIN_EMAIL### The admin email in case this was unexpected. - ###EMAIL### The user's email address. - ###SITENAME### The name of the site. - ###SITEURL### The URL to the site.
$headersstring
Headers. Add headers in a newline (\r\n) separated string.
2839*-`###SITEURL###` The URL to the site.2840* @type string$headers Headers. Add headers in a newline(\r\n) separated string.2841*}2842* @param array$user The original user array.2843* @param array$userdata The updated user array.2844*/2845$pass_change_email=apply_filters('password_change_email',$pass_change_email,$user,$userdata);28462847$pass_change_email['message']=str_replace('###USERNAME###',$user['user_login'],$pass_change_email['message']);2848$pass_change_email['message']=str_replace('###ADMIN_EMAIL###',get_option('admin_email'),$pass_change_email['message']);2849$pass_change_email['message']=str_replace('###EMAIL###',$user['user_email'],$pass_change_email['message']);2850$pass_change_email['message']=str_replace('###SITENAME###',$blog_name,$pass_change_email['message']);2851$pass_change_email['message']=str_replace('###SITEURL###',home_url(),$pass_change_email['message']);
History
Introduced in 4.3.0. Unchanged from 6.7.7 through 7.1.0.