W3cubDocs

/WordPress

apply_filters( ‘wp_new_user_notification_email_admin’, array $wp_new_user_notification_email_admin, WP_User $user, string $blogname )

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

Parameters

$wp_new_user_notification_email_adminarray
Used to build wp_mail() .
  • to string
    The intended recipient – site admin email address.
  • subject string
    The subject of the email.
  • message string
    The body of the email.
  • headers string
    The headers of the email.
$userWP_User
User object for new user.
$blognamestring
The site title.

Source

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

Changelog

Version Description
4.9.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_new_user_notification_email_admin