wp_new_user_notification_email_admin

过滤钩子


apply_filters( 'wp_new_user_notification_email_admin', $wp_new_user_notification_email_admin, $user, $blogname )
参数
  • (array)
    $wp_new_user_notification_email_admin
    {
    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 new user.
    Required:
  • (string)
    $blogname
    The site title.
    Required:
定义位置
  • wp-includes/pluggable.php
    , line 2153
引入
4.9.0
弃用

Filters the contents of the new user notification email sent to the site admin.

$wp_new_user_notification_email_admin = apply_filters( 'wp_new_user_notification_email_admin', $wp_new_user_notification_email_admin, $user, $blogname );