wp_new_user_notification_email filter-hook . WP 4.9.0
Filters the contents of the new user notification email sent to the new user.
Usage
add_filter( 'wp_new_user_notification_email', 'filter_function_name_5578', 10, 3 ); function filter_function_name_5578( $wp_new_user_notification_email, $user, $blogname ){ // filter... return $wp_new_user_notification_email; }
- $wp_new_user_notification_email(array)
Used to build wp_mail().
-
to(string)
The intended recipient - New user email address. -
subject(string)
The subject of the email. -
message(string)
The body of the email. - headers(string)
The headers of the email.
-
- $user(WP_User)
- User object for new user.
- $blogname(string)
- The site title.
Changelog
Since 4.9.0 | Introduced. |
Where the hook is called
wp_new_user_notification_email
wp-includes/pluggable.php 2080
$wp_new_user_notification_email = apply_filters( 'wp_new_user_notification_email', $wp_new_user_notification_email, $user, $blogname );