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
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-06 11:33:17

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: