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.

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

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>