Plugin Directory

SB Welcome Email Editor

Allows you to edit the WordPress Welcome/Forgot Password Emails to customise the content and even add an attachment.

It sends the default WP Email and not my edited one

Please don't assume that because it sends the default WP email that this plugin is broken or rubbish. In V4.3 WordPress changed the way that welcome emails were sent and broke every welcome email editor plugin. If you are using a version older than 4.3 then I'd recommend upgrading WP and retesting. If you have a version 4.3.1 or newer then read on.

The simplest solution is that there is a conflict. The plugin works by overriding the wp_new_user_notification() function which is written in such a way that ONLY one plugin or theme can override it. Sometimes plugins or themes (even if they are unreliated to email sending) can cause the WP load order to change and the pluggable.php file is called earlier than it should and therefore removes the opportunity for my plugin or any similar to do their job. The easiest way to debug is to turn off all plugins (or one by one.. either way is fine) and then retest. If it works then gradually turn your plugins back on until it breaks again.. If you find a conflict please post on the forum or email me and I'll do my best to sort it out. If you find no conflict then it may be the theme.. switch the theme back to twentytwelve or similar and retest. Some people may not be prepared to do this or not be comfortable with the testing process. If you'd like help working it out please do get in touch and I'll help however I can.

The password is not in the email?

From 4.3 the password is no longer sent to the user via email and instead a reset password link is sent instead. This was a controversial and annoying move but it was done for good reason. Some plugins that allow you to style the reg form may allow the password to be sent but if this doesn't work please note that this isn't default functionality and may not work. It's worth a test though!

I want to add my own hooks

No problem.. There are two ways to do this. You can use the filter to get the email content and parse it yourself or the easier method would be to use the 'sb_we_replace_array' filter which expects an array which the plugin will parse. See below for examples:

$admin_message = apply_filters('sb_we_email_admin_message', $admin_message, $settings, $user_id);
$admin_subject = apply_filters('sb_we_email_admin_subject', $admin_subject, $settings, $user_id);
$user_subject = apply_filters('sb_we_email_subject', $user_subject, $settings, $user_id);
$user_message = apply_filters('sb_we_email_message', $user_message, $settings, $user_id);

The above code is from the plugin. You can edit the admin and user subject lines and body contents in any way you like. I won't explain any further as this is either something you know or you don't. The following method is easier:

$user_message_replace = apply_filters('sb_we_replace_array', array(), $user_id, $settings);

This method passes a filter an array and you can write in your own code to add hooks to the array for parsing. You can do the following:

add_filter('sb_we_replace_array', 'my_sb_we_replace_array', 10, 3);

function my_sb_we_replace_array($hooks, $user_id, $settings) {
    $hooks['my_hook'] = 'test';
    return $hooks;

This will allow the plugin to process a hook called [my_hook] and replace it with the word test. The user id is passed to the function as well so you can get information about the user and replace that in as well as the settings array from the welcome email editor plugin. If you need help with this please get in touch.

Requires: 4.3.1 or higher
Compatible up to: 4.4.*
Last Updated: 3 months ago
Active Installs: 10,000+


4.1 out of 5 stars


1 of 11 support threads in the last two months have been marked resolved.

Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

50,2,1 100,2,2 100,1,1
100,1,1 67,3,2 100,3,3 100,1,1
100,2,2 100,1,1 100,1,1 100,1,1 100,1,1 80,5,4 100,1,1
100,1,1 100,2,2 100,2,2
100,3,3 100,1,1
100,2,2 100,1,1
100,1,1 50,4,2 50,2,1
100,1,1 0,1,0
50,2,1 0,1,0
0,2,0 0,1,0 100,1,1