wp_password_change_notification_email

過濾鉤子
apply_filters( 'wp_password_change_notification_email', $wp_password_change_notification_email, $user, $blogname )
引數
  • (array) $wp_password_change_notification_email { Used to build wp_mail(). @type string $to The intended recipient - site admin email address. @type string $subject The subject of the email. @type string $message The body of the email. @type string $headers The headers of the email. }
    Required:
  • (WP_User) $user User object for user whose password was changed.
    Required:
  • (string) $blogname The site title.
    Required:
定義位置
相關勾子
retrieve_password_notification_emailpassword_change_emailwp_new_user_notification_emailsend_password_change_emailsend_core_update_notification_email
相關方法
wp_password_change_notificationwp_network_admin_email_change_notificationwp_site_admin_email_change_notificationwp_send_new_user_notificationswpmu_welcome_notificationwp_new_blog_notification
引入
4.9.0
棄用
-

wp_password_change_notification_email是一個過濾器鉤子,允許開發人員在使用者更改密碼時修改傳送給使用者的電子郵件的內容。這個過濾器鉤子應用於傳送的訊息,然後將過濾後的值用作電子郵件的內容。

過濾傳送給網站管理員的密碼更改通知郵件的內容。

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

常見問題

FAQs
檢視更多 >