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。
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$content = apply_filters( 'new_user_email_content', $email_text, $new_user_email );
$content = apply_filters( 'new_user_email_content', $email_text, $new_user_email );
$content = apply_filters( 'new_user_email_content', $email_text, $new_user_email );

常見問題

FAQs
檢視更多 >