password_change_email

过滤钩子
apply_filters( 'password_change_email', $pass_change_email, $user, $userdata )
参数
  • (array) $pass_change_email { 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. }
    Required:
  • (array) $user The original user array.
    Required:
  • (array) $userdata The updated user array.
    Required:
定义位置
相关勾子
send_password_change_emailwp_password_change_notification_emailemail_change_emailsend_email_change_emailpassword_hint
相关方法
wp_password_change_notificationvalidate_emailsanitize_emaildefault_password_nag_edit_userdefault_password_nagwp_get_password_hint
引入
4.3.0
弃用
-

password_change_email – 这个函数用来在用户的密码被改变时向他们发送一封电子邮件。该邮件包含有关更改的信息和任何相关的安全措施。

过滤用户密码更改时发送的电子邮件内容。

$pass_change_email = apply_filters( 'password_change_email', $pass_change_email, $user, $userdata );

常见问题

FAQs
查看更多 >