wp_installed_email

过滤钩子


apply_filters( 'wp_installed_email', $installed_email, $user, $blog_title, $blog_url, $password )
参数
  • (array)
    $installed_email
    {
    Used to build wp_mail().

    @type string $to The email address of the recipient.
    @type string $subject The subject of the email.
    @type string $message The content of the email.
    @type string $headers Headers.
    }

    Required:
  • (WP_User)
    $user
    The site administrator user object.
    Required:
  • (string)
    $blog_title
    The site title.
    Required:
  • (string)
    $blog_url
    The site URL.
    Required:
  • (string)
    $password
    The site administrator’s password. Note that a placeholder message
    is usually passed instead of the user’s actual password.
    Required:
定义位置
  • wp-admin/includes/upgrade.php
    , line 605
引入
5.6.0
弃用

Filters the contents of the email sent to the site administrator when WordPress is installed.

$installed_email = apply_filters( 'wp_installed_email', $installed_email, $user, $blog_title, $blog_url, $password );