Disable new site creation email notifications for WordPress multisite

In multisite, WordPress 3.0.5 will send new site creation email notifications to the site admin by default. There’s also no super admin option to disable them. Fortunately, a short code snippet in /wp-content/mu-plugins/ achieves the same effect:

function db_remove_new_site_notification_email( $blog_id, $user_id, $password, $title, $meta ) {
return false;
}
add_filter( 'wpmu_welcome_notification', 'db_remove_new_site_notification_email' );

Behind the scenes, we’re hijacking a filter in wpmu_welcome_notification() to invalidate the method and disable the email. With this approach, the option to email the network administrator is still functional.

Author: Daniel Bachhuber

Proud father x2. Principal, Hand Built. Maintainer, WP-CLI.

3 thoughts on “Disable new site creation email notifications for WordPress multisite”

  1. I had a small adjustment to make which is that I was getting errors until I changed the following like
    add_filter( ‘wpmu_welcome_notification’, ‘db_remove_new_site_notification_email’ );

    to

    add_filter( ‘wpmu_welcome_notification’, ‘db_remove_new_site_notification_email’,10,5 );

    After that it worked like a charm!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s