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 (rn) separated string.
    }

    Required:
  • (array)
    $user
    The original user array.
    Required:
  • (array)
    $userdata
    The updated user array.
    Required:
定义位置
  • wp-includes/user.php
    , line 2627
引入
4.3.0
弃用

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

$pass_change_email = apply_filters( 'password_change_email', $pass_change_email, $user, $userdata );