1. 首页
  2. WordPress钩子手册

email_change_email

apply_filters( ’email_change_email’, array $email_change_email, array $user, array $userdata )

过滤钩子:过滤用户电子邮件更改时发送的电子邮件的内容。
Filter Hook: Filters the contents of the email sent when the user’s email is changed.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$email_change_email (array) 用于生成wp_mail()。’到’(字符串)预期的收件人。
‘subject'(string) The subject of the email. ‘message’(string) 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. “headers”(字符串)标题。
$user (array) 原始用户数组。
$userdata (array) 更新的用户数组。

源码(Source)


更新版本 源码位置 使用 被使用
4.3.0 wp-includes/user.php:2110 1 0

email_change_email 为WP2原创文章,链接:https://www.wp2.cn/hook/email_change_email/