Last active
August 13, 2020 18:07
-
-
Save pbiron/ec0d7d0bf84308c905acaf8900764aec to your computer and use it in GitHub Desktop.
Disable WordPress plugin/theme auto-update email notifications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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