email_change_email

最后更新于:2021-11-26 09:09:47

apply_filters( ’email_change_email’, array $email_change_email, array $user, array $userdata )

Filters the contents of the email sent when the user’s email is changed.

参数

$email_change_email

(array)
Used to build gc_mail().

  • ‘to’
    (string) The intended recipients.
  • ‘subject’
    (string) The subject of the email.
  • ‘message’
    (string) 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.
  • ‘headers’
    (string) Headers.

$user

(array)
The original user array.

$userdata

(array)
The updated user array.

源文件

文件: gc-includes/user.php

View on Trac