How to change the default registration email ? (plugin and/or non-plugin)
Question
After a new user registration, WP sends out an email with the login / password, and a link to the login page.
Is there a way to change this defaut email template? I’d also like to change the subject and sender.
Edit : For anyone interested, here is a plugin solution.
in progress
0
customization, email, registration, templates, users
11 years
2011-04-21T05:24:09-05:00
2011-04-21T05:24:09-05:00 0 Answer
100 views
0
Answer ( 1 )
For 2018 and onwards users:
Since WordPress 4.9.0 there are new filters you can use for this (no need for a plugin anymore):
Usage example on email sent to Admin (you can paste this in your theme’s functions.php ):
add_filter( 'wp_new_user_notification_email_admin', 'custom_wp_new_user_notification_email', 10, 3 ); function custom_wp_new_user_notification_email( $wp_new_user_notification_email, $user, $blogname ) { $wp_new_user_notification_email['subject'] = sprintf( '[%s] New user %s registered.', $blogname, $user->user_login ); $wp_new_user_notification_email['message'] = sprintf( "%s ( %s ) has registerd to your blog %s.", $user->user_login, $user->user_email, $blogname ); return $wp_new_user_notification_email; }