Stop WordPress from sending emails after automatic updates

When WordPress leveled up to version 3.7 it became possible to automatically update some parts of your WordPress installation. Instead of manually checking for new versions, WordPress will update its own core files and notify you (the admin) that the changes were made.

It’s not that hard to lock theme and plugin updates if you still want to be in control over WordPress versions but that’s not what we’re going to be talking about today.

If you ask us, it’s not that annoying to have WordPress notify you about the automatic updates. After all, those updates are something important for your website and you should know that there was a newer version of your system. But if you have more than one WordPress website that you’re taking care of and have different setups which are updated automatically, you could end up receiving emails about updates more often than you might want.

Instead of switching back to manual updates on all of your sites, you can simply stop WordPress from sending you emails after the update occurs:

  1. Open functions.php
  2. Copy and paste the following:
  3. function wploop_no_update_emails( $send, $type, $core_update, $result ) {
    if ( ! empty( $type ) && $type == 'success' ) {
    return false;
    }
    return true;
    }
    add_filter( 'auto_core_update_send_email', 'wploop_no_auto_update_emails', 10, 4 );
    
  4. Save changes

It was as simple as always, wasn’t it. If you have several websites, simply repeat the process for each and every site.

You can now enjoy automatic WordPress updates and still have a clean inbox.  Just make sure that you’re aware of the updates since those updates might have a positive and negative effect on your site.

START YOUR OWN BLOG

This guide is an introduction to mastering the art of blogging. It provides easy to follow steps to start, maintain, and grow your blog.

Read the guide

Leave a Reply

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