How to Change the Default Welcome Message to Your Subscribers?

By default, WordPress would send the welcome message using the default template. It is possible to amend the email message but this must be done via a plugin (you can learn to create your own plugin fast and easy here).

Then you can copy and paste the following code into your plugin file (the code will not work if you paste it into the functions.php file):

if ( !function_exists('wp_new_user_notification') ) {
    function wp_new_user_notification( $user_id, $plaintext_pass = '' ) {
        $user = new WP_User($user_id);

        $user_login = stripslashes($user->user_login);
        $user_email = stripslashes($user->user_email);

        if ( empty($plaintext_pass) )

        $message  = sprintf(__("[%s] This is the email body..."), get_option('blogname')) . "\r\n\r\n";
        $message .= __('Below are your registration details') . "\r\n\r\n";
        $message .= wp_login_url() . "\r\n";
        $message .= sprintf(__('Login:%s'), $user_login) . "\r\n";
        $message .= sprintf(__('Password:%s'), $plaintext_pass) . "\r\n\r\n";

        wp_mail($user_email, sprintf(__('[%s] This is the email subject...'), get_option('blogname')), $message);




Please login to post comments.

Login thru Twitter / Facebook


Log in with Facebook