Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbiron/ec0d7d0bf84308c905acaf8900764aec to your computer and use it in GitHub Desktop.
Save pbiron/ec0d7d0bf84308c905acaf8900764aec to your computer and use it in GitHub Desktop.
Disable WordPress plugin/theme auto-update email notifications
<?php
/**
* Plugin Name: Disable plugin/theme auto-update email notficiations
* Description: Disable plugin/theme auto-update email notficiations
* Author: Paul V. Biron/Sparrow Hawk Computing
* Author URI: https://sparrowhawkcomputing.com/
* Plugin URI: https://gist.github.com/pbiron/ec0d7d0bf84308c905acaf8900764aec
* Version: 0.1.0
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
/*
* Note: I do not recommend using this plugin, because I think receiving
* the notficiations is important. But for those that don't want them,
* this will do the trick.
*
* @link https://core.trac.wordpress.org/ticket/50988
*/
add_filter( 'auto_plugin_update_send_email', '__return_false' );
add_filter( 'auto_theme_update_send_email', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment