Annoyed by frequent email notifications about new user registrations on your WordPress site? Disable them with the method in this article to keep your inbox clean and focus on more important tasks.

Benefits of Disabling New User Notification Emails
- Reduce unnecessary emails – Stop receiving notifications for every new user registration.
- Keep your inbox organized – Focus on important emails without clutter.
- Improve efficiency – Eliminate distractions and save time for essential tasks.
- No plugins required – Simply add a few lines of code.
How to Implement Code to Disable New User Emails in WordPress
If your website or server lacks a mail-sending function, refer to guides on SMTP in WordPress and Gmail SMTP setup on Ubuntu.
Step 1: Add custom code to functions.php
First, open the functions.php file of the WordPress theme you are using. Then, copy and paste the code below at the end of the file:
function disable_new_user_notifications() { remove_action( 'register_new_user', 'wp_send_new_user_notifications' ); remove_action( 'edit_user_created_user', 'wp_send_new_user_notifications' ); add_action( 'register_new_user', 'send_new_email_notifications' ); add_action( 'edit_user_created_user', 'send_new_email_notifications', 10, 2 ); } function send_new_email_notifications( $user_id, $notify = 'user' ) { if ( empty($notify) || $notify == 'admin' ) { return; } elseif( $notify == 'both' ){ $notify = 'user'; } wp_send_new_user_notifications( $user_id, $notify ); } add_action( 'init', 'disable_new_user_notifications' ); function custom_wp_new_user_notification_email( $wp_new_user_notification_email, $user, $blogname ) { $subject = sprintf( '[%s] - Registration Info - [ItsmeIT Solution]', $user->user_login ); $headers = "Content-Type: text/plainrn"; $wp_new_user_notification_email['subject'] = $subject; $wp_new_user_notification_email['headers'] = $headers; return $wp_new_user_notification_email; } add_filter( 'wp_new_user_notification_email', 'custom_wp_new_user_notification_email', 10, 3 );
Step 2: Save and test functionality
After adding the code to functions.php
, save the file and try registering a new account. Now, when a new user signs up, you will no longer receive notification emails!
By employing this approach to disable email notifications when users register for an account in WordPress, you can redirect your focus to more critical tasks, free from the distraction of unwanted email notifications. Give it a try and experience the convenience firsthand!