password_change_email

過濾鉤子
apply_filters( 'password_change_email', $pass_change_email, $user, $userdata )
引數
  • (array) $pass_change_email { Used to build wp_mail(). @type string $to The intended recipients. Add emails in a comma separated string. @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. - ###EMAIL### The user's email address. - ###SITENAME### The name of the site. - ###SITEURL### The URL to the site. @type string $headers Headers. Add headers in a newline (\r\n) separated string. }
    Required:
  • (array) $user The original user array.
    Required:
  • (array) $userdata The updated user array.
    Required:
定義位置
相關勾子
send_password_change_emailwp_password_change_notification_emailemail_change_emailsend_email_change_emailpassword_hint
相關方法
wp_password_change_notificationvalidate_emailsanitize_emaildefault_password_nag_edit_userdefault_password_nagwp_get_password_hint
引入
4.3.0
棄用
-

password_change_email – 這個函式用來在使用者的密碼被改變時向他們傳送一封電子郵件。該郵件包含有關更改的資訊和任何相關的安全措施。

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

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

常見問題

FAQs
檢視更多 >