Hi Clea,
You can use any plugin that helps you customize the content of the welcome email. Plugin uses the default template of the welcome email.
If you are not receiving the email, try keeping only this plugin active for a while just to check if this makes any difference. If it does, you can activate other plugins one-by-one to check which is the one causing this. Once you find out the plugin causing this, we can work on the solution.
Thread Starter
Clea
(@clearoz)
Hi,
Thanks for the reply !
Just to let you know, I have been able to edit the registration email using code found there (I prefer not to add another plugin if I can find a simple code to add to functions.php) :
https://wordpress.org/support/topic/customizing-email-function/
Here it is :
add_filter( 'wp_new_user_notification_email', 'edit_user_notification_email', 10, 3 );
function edit_user_notification_email( $wp_new_user_notification_email, $user, $blogname ){
$new_subject_txt = __( 'Information about username and password');
$new_msg_txt = __( 'Hello and welcome to Our website!'). "\r\n";
$new_msg_txt .=__( 'You have been assigned an education on our e-learning platform.'). "\r\n\r\n";
$new_msg_txt .= sprintf(__('Your username is: %s'), $user->user_email ) . "\r\n";
$key = get_password_reset_key( $user );
if ( is_wp_error( $key ) ) {
return;
}
$new_msg_txt .= __( 'To set your password, visit the following address:' ) . "\r\n";
$new_msg_txt .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user->user_login ), 'login' ) . "\r\n\r\n";
$new_msg_txt .= __( 'For questions or problems with entering a password, contact our support.');
$wp_new_user_notification_email['subject'] = $new_subject_txt;
$wp_new_user_notification_email['message'] = $new_msg_txt;
return $wp_new_user_notification_email;
}
Kind regards,
Clea
-
This reply was modified 5 years, 2 months ago by
Clea.
You can add custom code in the functions.php file but it will vanish next time you will update the theme unless you are adding code in the child theme.
Thread Starter
Clea
(@clearoz)
Thanks for the tip ! I am using a child theme so it should be fine 🙂
Kind regards,
Clea