Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Mutes update email on beta site

View otto-mute.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?php
/**
* @package otto-mute
* @version 0.1
*/
/*
Plugin Name: Otto Mute
Description: Mute's daily email from beta site updates
Author: Robert Dall & Otto Wood
Version: 0.1
Author URI: http://robertdall.com
*/
// Mutes Email on beta site
function update_no_email_on_success($send, $type, $core_update, $result) {
if ( $type == 'success' ) {
$send = false;
}
return $send;
}
add_filter('auto_core_update_send_email', 'update_no_email_on_success', 10, 4);
// Mutes daily debug email
add_filter('automatic_updates_send_debug_email','__return_false');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.