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_new_user_notification_emailwp_send_new_user_notification_to_adminwpmu_signup_user_notification_emailwp_send_new_user_notification_to_userwpmu_signup_user_notification
相关方法
wp_new_user_notificationwp_send_new_user_notificationswpmu_signup_user_notificationwpmu_welcome_user_notificationwp_new_blog_notificationnewuser_notify_siteadmin
引入
4.9.0
弃用
-

wp_new_user_notification_email_admin: 这是一个给站点管理员发送新用户注册通知邮件的动作,包括新用户的相关信息。

过滤发送给网站管理员的新用户通知邮件的内容。

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

常见问题

FAQs
查看更多 >