email_change_email

过滤钩子
apply_filters( 'email_change_email', $email_change_email, $user, $userdata )
参数
  • (array) $email_change_email { Used to build wp_mail(). @type string $to The intended recipients. @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. - ###NEW_EMAIL### The new email address. - ###EMAIL### The old email address. - ###SITENAME### The name of the site. - ###SITEURL### The URL to the site. @type string $headers Headers. }
    Required:
  • (array) $user The original user array.
    Required:
  • (array) $userdata The updated user array.
    Required:
定义位置
相关勾子
send_email_change_emailpassword_change_emailnetwork_admin_email_change_emailsend_password_change_emailsend_network_admin_email_change_email
相关方法
validate_emailsanitize_emailis_emailemail_existsget_all_page_idsis_page_template
引入
4.3.0
弃用
-

email_change_email: 当用户在WordPress管理中改变他们的电子邮件地址时,这个动作钩子被触发。该钩子将新的电子邮件地址和用户ID作为参数,允许你在处理电子邮件变更后执行操作或运行自定义代码。

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

$email_change_email = apply_filters( 'email_change_email', $email_change_email, $user, $userdata );

常见问题

FAQs
查看更多 >