apply_filters( 'wp_new_user_notification_email_admin', array $wp_new_user_notification_email_admin, WP_User $user, string $blogname )
- Since
- 4.9.0
Filters the contents of the new user notification email sent to the site admin.
Compatibility
- WordPress
- since 4.9.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$wp_new_user_notification_email_adminarray- { 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.
}$tostringThe intended recipient - site admin email address.$subjectstringThe subject of the email.$messagestringThe body of the email.$headersstringThe headers of the email.
$userWP_User- User object for new user.
$blognamestring- The site title.
Where this hook fires · 1
wp-includes/pluggable.php:2345wp_new_user_notification()
Source code
* @type string $message The body of the email. * @type string $headers The headers of the email. * } * @param WP_User $user User object for new user. * @param string $blogname The site title. */ $wp_new_user_notification_email_admin = apply_filters( 'wp_new_user_notification_email_admin', $wp_new_user_notification_email_admin, $user, $blogname ); wp_mail( $wp_new_user_notification_email_admin['to'], wp_specialchars_decode( sprintf( $wp_new_user_notification_email_admin['subject'], $blogname ) ), $wp_new_user_notification_email_admin['message'], $wp_new_user_notification_email_admin['headers']Changelog
Introduced in 4.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.