You are currently viewing How to Disable New User Notifications in WordPress

How to Disable New User Notifications in WordPress

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments

Do You want to disable new user notifications In WordPress?

Are you suffering so much from receiving new user notifications in WordPress?

If you once enable new user registration on your WordPress website then you have to get all notification emails to the admin mail for every new registration. If you have so many visitors on your site then lots of visitors join every day and you got the notification, these emails can be suffering.

In this article, I’ll show you how to disable new user notifications in WordPress.

Why Disable New User Notification Emails in WordPress?

If you have to allow new user registration in your WordPress site then you got lots of benefits. if you have a blog site, membership website, online store then new user registration is very necessary for you.

However, there is a bad effect on this. WordPress sends you every single notification when someone registration on your site. But you have got a lot of mail then it will be ignorable.

This feature is also good for keeping an eye on who gonna register on your site but it can be annoying if a lot of people join your site.

Having lots of new user notifications can be created from your email inbox. And make it difficult to spot the correct mail from your client and visitors.

In this place disable new user notifications can come in handy. Let’s go for How to disable new user notifications In WordPress.


Disable New User Notification Emails With A Plugin

Disable New User Notifications

If you want to disable new user notifications in an easy way then you can go with this way.

Firstly Down the plunging then upload it on your website. Just a simple way.

This way disables both the user registration and password reset notifications sent during the user registration process.

Simple and Easy like it should be 🙂

Disable New User Emails in WordPress with Code

If you don’t want to use a plugin for this solution. Then here’s a bit of PHP code you can use.

You can use this code on your theme’s function.php file or to your site using a plugin like Code Snippets.

 //Disable the new user notification sent to the site admin
 function smartwp_disable_new_user_notifications() {
 //Remove original use created emails
 remove_action( ‘register_new_user’, ‘wp_send_new_user_notifications’ );
 remove_action( ‘edit_user_created_user’, ‘wp_send_new_user_notifications’, 10, 2 );
 //Add new function to take over email creation
 add_action( ‘register_new_user’, ‘smartwp_send_new_user_notifications’ );
 add_action( ‘edit_user_created_user’, ‘smartwp_send_new_user_notifications’, 10, 2 );
 function smartwp_send_new_user_notifications( $user_id, $notify = ‘user’ ) {
 if ( empty($notify) || $notify == ‘admin’ ) {
 }elseif( $notify == ‘both’ ){
 //Only send the new user their email, not the admin
 $notify = ‘user’;
 wp_send_new_user_notifications( $user_id, $notify );

add_action( ‘init’, ‘smartwp_disable_new_user_notifications’ );

Leave a Reply