new_user_email_content

过滤钩子
apply_filters( 'new_user_email_content', $email_text, $new_user_email )
参数
  • (string) $email_text Text in the email.
    Required:
  • (array) $new_user_email { Data relating to the new user email address. @type string $hash The secure hash used in the confirmation link URL. @type string $newemail The proposed new email address. }
    Required:
定义位置
相关勾子
new_admin_email_contentnew_network_admin_email_contentdelete_site_email_contentwp_mail_content_typenew_site_email
相关方法
new_user_email_admin_noticeget_url_in_contentget_user_by_emailget_user_countget_media_embedded_in_contentwp_defer_term_counting
引入
4.9.0
弃用
-

new_user_email_content。这个过滤钩子用于修改发送给新创建用户的电子邮件的内容。

过滤尝试更改用户电子邮件地址时发送的电子邮件文本。

以下字符串具有特殊含义,将动态替换:

  • USERNAME### 当前用户的用户名。
  • ADMIN_URL### 单击以确认电子邮件更改的链接。
  • EMAIL### 新电子邮件。
  • SITENAME### 站点的名称。
  • SITEURL### 站点的URL。
$content = apply_filters( 'new_user_email_content', $email_text, $new_user_email );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-05 21:33:01

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

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

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