Stop New Site and Signup Emails to the Network Admin
Stops WordPress from emailing the network admin every time a site is created or someone activates a new site or account, useful on networks that create many sites automatically.
Opens WPIDE on
Code
if ( ! is_multisite() ) {
return;
}
// Sites created from Network Admin or WP-CLI (WordPress 5.6+).
add_filter( 'send_new_site_email', '__return_false' );
// Sites and users activated through wp-signup.php.
add_filter( 'site_option_registrationnotification', function () {
return 'no';
} );
Notes
Site owners still get their own welcome emails; the "Registration notification" network setting is overridden while this is active.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.