Last active
August 29, 2015 14:04
-
-
Save norcross/d5c467a51ab87b9fe68b to your computer and use it in GitHub Desktop.
Disable the email notification for successful update
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 | |
function rkv_bypass_auto_update_email( $send, $type, $core_update, $result ) { | |
// check our type and bail if successful | |
if ( ! empty( $type ) && $type == 'success' ) { | |
return false; | |
} | |
// return the send function | |
return true; | |
} | |
add_filter( 'auto_core_update_send_email', 'rkv_bypass_auto_update_email', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use the auto_core_update_send_email filter instead.