Tech Tips

How to disable auto-update email notifications in WordPress

Aren’t you tired to receive 15 emails a day saying “Some plugins were automatically updated”? Well, there is a solution for that, but it’s not really user friendly.

It’s weird that WordPress didn’t create an option in the setting to disable those emails. Sure, they are useful rarely, but most of the times they are just taking space in your inbox (if you want to clean it, check here). There is two types of auto-update email:

  • Email about plugins being updated
  • Email about themes being updated

So, until the development team make the option visible in the UI, here is the snippet you need to put in the functions.php of your theme, or better, in of your child theme:

<?php
// Disable auto-update email notifications plugins-wise.
add_filter('auto_plugin_update_send_email', '__return_false');

// Disable auto-update email notifications themes-wise.
add_filter('auto_theme_update_send_email', '__return_false');

It uses the hooks auto_plugin_update_send_email (link in the codex) and auto_theme_update_send_email (link in the codex).

Leave a Reply

"Thomas, the article was delightful, but I want to know more about you!"