Email PHP Beginner

Stop “New User Registration” Emails to the Admin

Stop WordPress emailing the site admin every time someone registers, while new users still get their own welcome email.

Tested on WordPress 7.1 PHP 8.3 No plugin needed Updated
functions.php 1 lines
add_filter( 'wp_send_new_user_notification_to_admin', '__return_false' );

Where to add this

Recommended A code snippets plugin Survives theme changes and is easy to switch off.
Child theme At the end of your child theme's functions.php file.
Must-use plugin As a .php file in wp-content/mu-plugins, starting with <?php.

Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.

On stores and membership sites, a “New User Registration” email for every sign-up quickly floods the admin inbox. This one line turns those emails off.

How it works

Since WordPress 6.1, wp_send_new_user_notification_to_admin decides whether the admin gets the new user email. Returning false stops it. The new user’s own email is controlled separately and isn’t affected.

Things to watch

  • WooCommerce sends its own “New account” emails, which you manage under WooCommerce → Settings → Emails.
  • You can still see new users under Users, sorted by date.

How to test it

Register a test user. The new user should get their email, and the admin should not.

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only