Viewing 3 replies - 1 through 3 (of 3 total)
  • wp_new_user_notification_email – customise email sent to User
    wp_new_user_notification_email_admin – customise email sent to Admin

    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;
    }
    Thread Starter stefanhackel

    (@stefanhackel)

    Hi, thank you for your post! I edited the pluggable.php according your instructions. But how can I change the subject and the body message? I do not find the source of that strings. I checked all most files, where I assumed the source. Sorry, I’m a beginner!
    Thank you for your help, Stefan

    Thread Starter stefanhackel

    (@stefanhackel)

    Hi,
    is there anybody who has advice how to change the “message” of the “wp_new_user_notification_email”?
    Thank you, br, Stefan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to edit new user Email sent after registration’ is closed to new replies.