How to Disable New User Notification Emails in WordPress

disable-new-user-notification-email

By default, WordPress sends notification emails when a new user registers on your site. It notifies both the admin and the user.

You can use the wp_send_new_user_notification_to_user and wp_send_new_user_notification_to_admin hooks to disable these emails

In this tutorial, I’ll show you how to stop these new user registration emails using a PHP code snippet.

Disable the Email Sent to the New User

Use the following PHP code snippet to stop WordPress from sending new users a notification email:

add_filter('wp_send_new_user_notification_to_user', '__return_false');

Disable the Email Sent to the Admin

Use the following PHP code snippet to stop WordPress from sending the admin a new user notification email.

add_filter('wp_send_new_user_notification_to_admin', '__return_false');

Leave a Reply

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