Turn off Sending Emails to New Users in WordPress Mu

WordPress automatically sends an email with the password to new users. How can we disable this feature?

I’ve seen this question being asked around (e.g. here) and couldn’t find a helpful reply anywhere.

I had this same problem and since I couldn’t find a clean way of doing it I had to comment a line in one of the core files. In the file wp-includes/pluggable.php, function wp_new_user_notification(), you can comment the last line that reads:

wp_mail($user_email, sprintf(__('[%s] Your username and password'), $blogname), $message);

I would love a cleaner way of doing this, if you know one please let me know!

Note that with upgrades you will lose this change. Unfortunately there seems to be no way around this until WordPress supports a filter or some other mechanism to do it in a cleaner way.

Also note that this is different from disabling new user notifications that are sent to the admin email, for that there is an option in the admin panel.

This was done against WordPress Mu 2.9.2. Your mileage may vary of course! :)

2 thoughts on “Turn off Sending Emails to New Users in WordPress Mu

  1. Hi there,

    Thanks for posting this, it saved me searching for where this notification originated. I know this is an old post, but still was the first thing I found when searching for how to disable this behavior. In case anyone else ends up here looking for the same solution, there is actually a cleaner way of doing it. The pluggable.php file is designed to be overridden via wordpress plugins, allowing you to customize the functions there without having to modify core files and avoiding your changes being overwritten when updating wordpress. I've written a very simple plugin that essentially wraps your fix in some wordpress plugin boilerplate. You can find it here: https://bitbucket.org/chrisemery/wpnotification/ – just drop the file into your wp-content/plugins directory, and install via wp-admin. I'm using wordpress 3.3.1 with multiuser.

Comments are closed.