Created
February 17, 2021 14:18
-
-
Save someguy9/dbb96f6e04941236c09bdf90735974a4 to your computer and use it in GitHub Desktop.
Disable automatic "Your Site Has Been Updated..." emails
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 | |
//Disable automatic "Your Site Has Been Updated..." emails | |
add_filter( 'auto_core_update_send_email', 'smartwp_disable_core_update_emails', 10, 4 ); | |
function smartwp_disable_core_update_emails( $send, $type, $core_update, $result ) { | |
if ( !empty($type) && $type == 'success' ) { | |
return false; | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment