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作為引數,允許你在處理電子郵件變更後執行操作或執行自定義程式碼。

過濾使用者電子郵件更改時傳送的電子郵件內容。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$email_change_email = apply_filters( 'email_change_email', $email_change_email, $user, $userdata );
$email_change_email = apply_filters( 'email_change_email', $email_change_email, $user, $userdata );
$email_change_email = apply_filters( 'email_change_email', $email_change_email, $user, $userdata );

常見問題

FAQs
檢視更多 >