wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_new_user_notification_email › WordPress过滤钩子

Since4.9.0
已弃用n/a
apply_filters( 'wp_new_user_notification_email', $wp_new_user_notification_email, $user, $blogname )
参数: (3)
  • (array) $wp_new_user_notification_email { Used to build wp_mail(). @type string $to The intended recipient - New user 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: Yes
  • (WP_User) $user User object for new user.
    Required: Yes
  • (string) $blogname The site title.
    Required: Yes
定义在:
文档:

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





源码

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