Este plugin não foi testado com as 3 últimas grandes versões do WordPress. Pode já não ser suportado e pode ter problemas de compatibilidade quando usado com versões mais recentes do WordPress.

SB Welcome Email Editor


I thought that the WordPress Welcome Email to both the Admin and the User were very un-user friendly so I wrote this plugin to allow admin members to change the content and headers.

It simply adds a new admin page that has a few options for the welcome email and gives you a list of hooks to use in the text to make the email a little more personal.

Added support whereby the admin notification can be turned off or a different admin (or admins, support for multiple recipients) can be notified. Plenty of hooks to make the emails as customisable as possible.

A reminder email service has now been added whereby the admin user can send a reminder to any particular user. This can be the original welcome email or a separate template configured on the Welcome Email Editor settings page.

Please email me or use the support forum if you have ideas for extending it or find any issues and I will be back to you as soon as possible.

I would recommend the use of an SMTP service with any WordPress plugin. A large amount of emails fall needlessly into Spam bins across the world (I get a fair amount of comment approval spam to deal with) because the WordPress site uses Sendmail to deliver email. I noticed an immediate improvement when using SMTP to send. It’s really easy so there’s no excuse 🙂


You can also get and contribute to SB Welcome Email Editor on GitHub.


I am looking for people to translate the plugin. The plugin is PO/MO file compatible and the first translation was added at the end of 2015. Please email me if you are interested in helping out. My email is sean.barton [ at ]

Current translations

  • English
  • Italiano
  • Francês


  1. Upload the ZIP file to the plugins page of your website
  2. Activate the plugin
  3. Visit the admin page it creates at the bottom of the admin menu
  4. Edit the settings as desired and click save.

Once complete, all new user emails will be sent in the new format.

Perguntas frequentes

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 unrelated 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 twentytwenty 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.


10 de Agosto, 2020
I wanted to change the email notification from WORDPRESS to my site and it worked like a dream. Thank you so much.
23 de Abril, 2020
A lightweight and basic plug-in does its job. Nothing is too complicated and no bloatware! Be warned through, if your admin ID number is different from 1 e.g. your Admin ID is 5 then you will need to input your Admin ID number to the box under 'E-mail to Admin(s)' in the settings page, otherwise you will not receive any e-mail! The ability to put in HTML code is great!
Ler todas as 58 avaliações

Contribuidores e programadores

“SB Welcome Email Editor” é software de código aberto. As seguintes pessoas contribuíram para este plugin:


“SB Welcome Email Editor” foi traduzido para 2 locales. Obrigado aos tradutores pelas suas contribuições.

Traduza o “SB Welcome Email Editor” para o seu idioma.

Interessado no desenvolvimento?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Registo de alterações

<V1.6 – Didn’t quite manage to add a changelog until now 🙂

V1.6 – 25/3/11 – Added user_id and custom_fields as hooks for use

V1.7 – 17/4/11 – Added password reminder service and secondary email template for it’s use

V1.8 – 24/8/11 – Added [admin_email] hook to be parsed for both user and admin email templates instead of just the email headers

V1.9 – 24/10/11 – Removed conflict with User Access Manager plugin causing the resend welcome email rows to now show on the user list

V2.0 – 27/10/11 – Moved the user column inline next to the edit and delete user actions to save space

V2.1 – 17/11/11 – Added multisite support so that the welcome email will be edited and sent in the same way as the single site variant

V2.2 – 12/12/11 – Added edit box for the subject line and body text for the reminder email. Added option to turn off the reminder service

V2.3 – 16/12/11 – Broke the reminder service in the last update. This patch sorts it out. Also tested with WP 3.3

V2.4 – 03/01/12 – Minor update to disable the reminder service send button in the user list. Previously only stopped the logging but the button remained

V2.5 – 18/01/12 – Minor update to resolve double sending of reminder emails in some cases. Thanks to igorii for sending the fix my way before I had a moment to look myself 🙂

V2.6 – 30/01/12 – Update adds functionality for reset/forgot password text changes (not formatting or HTML at the moment.. just the copy). Also adds a new shortcode for admin emails for buddypress custom fields: [bp_custom_fields]

V2.7 – 01/02/12 – Minor update adds site wide change of from address and name from plugin settings meaning a more consistent feel for your site. Also reminder email and welcome email shortcode bugs fixed.

V2.8 – 02/02/12 – Minor update fixes sender bug introduced by V2.7

V2.9 – 05/02/12 – Minor update fixes bug which was overriding the from name and address for all wordpress and plugin emails. Now lowered the priority of the filter and have made the global usage of the filter optional via the admin screen. Added labels to the admin screen as the list was getting rather long!

V3.0 – 16/02/12 – Minor update fixes a few coding inconsistencies. With thanks to John Cotton for notifying and fixing these issues on my behalf.

V3.1 – 17/02/12 – Minor update fixes a minor notice showing up on sites with error reporting set to ALL (or anything to include PHP notices)

V3.2 – 21/02/12 – Copy/paste error which broke the reminder email system. My apologies!

V3.3 – 05/05/12 – Buddypress custom fields shortcode now checks for existence of itself before querying nonexistent tables.

V3.4 – 22/05/12 – Minor update.. added [date] and [time] shortcodes to the template

V3.5 – 16/01/13 – Minor update.. Found conflict with S2Member where the FROM address information wasnt being respected. Fixed the conflict

V3.6 – 21/01/13 – Minor update. Moved menu to the settings panel and renmaed to SB Welcome Email so that it fits on one line.

V3.7 – 27/02/13 – Minor update. Added ability to have an attachment with the welcome email. Moved the admin page into the settings menu.

V3.8 – 14/05/13 – Minor update. Removed reminder email functionality

V3.9 – 23/05/13 – Minor update. Added code recommended by ‘’

V4.0 – 20/07/15 – Added some code to force this plugin to the top of the load order to reduce conflict with other plugins. Alsot sorted out those dodgy radio buttons on the settings page!

V4.1 – 22/07/15 – Replaced reference to get_usermeta in favour of get_user_meta. Also added a load of filters and actions for third party developers to hook into.

V4.2 – 30/07/15 – Removed a potential security issue in the admin page loader. Nothing huge but it would allow arbitrary functions to be called by admin users via the URL.

V4.3 – 07/09/15 – Major fixes in this version…Fixed Reset Password email template and send. Added a fix for the new wp_new_user_notification function change. Admin no longer gets the password in plaintext so have replaced with ***** to highlight this. Added [post_data] for admin as it might contain useful information. Added system to convert legacy users into the new format. A run once system to help the transition.

V4.4 – 08/09/15 – Some people were not seeing the upgrade banner on the site. I have bumped the version number to trigger an upgrade

V4.5 – 23/09/15 – Annoyingly WP updated the wp_new_user_notification again. This moved the second to the third parameter therefore breaking this plugin again. Fixed now!

V4.6 – 23/09/15 – Added fix for the lost password email user_login sometimes not being a string. Many thanks to the forum members for this solution

V4.7 – 12/11/15 – Changed the login URLs to use wp_login_url() instead of hard coding for wp-login.php. Merged in a set of changes by Luca Speranza to localise the plugin. Thanks so much for your help there!

V4.7.1 – 12/11/15 – Fixed a typo in wp_login_url() replacements from the last version… sorry!

V4.7.2 – 16/11/15 – Fixed issue with wp_login_url containing a trailingslashit wrapper which was causing problems

V4.8 – 17/11/15 – Added French Translation. Thanks to Robin Calmejane ( for his contribution

V4.9 – 14/12/18 – A version bump. Fixed a couple of outdated functions and added a settings function. Watch this space for more updates!

V4.9.1 – 17/12/18
– PHP7+ support, removing create_function calls
– Removed reference to mysql_real_escape_string replacing with esc_sql instead

V4.9.2 – 07/04/20
– It’s been a while. A little refresh and new face to the plugin is coming VERY soon
– Modernised styles
– Added CSS/SCSS file