Can you disable WordPress new user notifications?

July 7, 2010 – 9:19 pm |

The question we received through our contact form was:

Hey guys. I’m trying to figure out how to disable admin email notifications when a new user signs up without using a plugin. Any thoughts?

So I did some research into the code and found out that the answer is No, with the way WordPress is setup, you cannot disable this feature without a plugin.  The reason is that WordPress does not have a built in setting to disable this functionality.  All they provide is the normal “hook” interface that they provide for plugins.

Now, the consolation prize is that you can do this with a very simple plugin.

  1. <?php
  2. /*
  3. Plugin Name: Disable wp new user notification
  4. Description: Disables the email sent to the administrator when a new user creates an account.
  5. */
  6. function wp_new_user_notification() {
  7. //nothing here
  8. }
  9. ?>

But, if you want the email to go out to the new users too, then you need to use a plugin that already exists called the Disable WP New User Notification Plugin. This plugin comes well recommended and does everything the default wp_new_user_notification function in the WordPress core does, without sending an email to the site administrator.

pixel Can you disable WordPress new user notifications?

Tagged: , , , , , , , ,

  • http://neurobonkers.com Neurobonkers

    It should be noted that “new users” often tend to be bots landing on your page after doing a google crawl for /wp-admin and then using a bot to auto-sign up accounts on thousands of blogs. They can then use these accounts for comment spam or worse, to attempt to find back doors and inject malicious code.

    A more secure alternative is to install a comment manager and block new user signups.

  • http://mkbernier.com Matt Bernier

    You are absolutely correct. Using a tool like disqus with Akismet is way more secure to protect against comment spam. The problem is that the admin still gets the new user emails which is what the OP was asking about.

  • http://neurobonkers.com Neurobonkers

    I came up against this problem myself recently. I use disqus but tend to get at least a couple of new user registrations a day.

    My concern is security, I’ve deleted all the spam-user-profiles and unticked “Anyone can register” under “membership”.I’m assuming this will stop the problem without the need for the plugin?

  • http://mkbernier.com Matt Bernier

    If you remove the possibility that people can register, then you will get no registrations. If that’s what you are going for, then your problem is solved!  The issue then is that you will get no one commenting, unless your plugin will allow people who are not registered to comment (totally possible).

  • http://neurobonkers.com Neurobonkers

    Lovely, thanks Matt.