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 );
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。