Last active
August 4, 2017 14:53
-
-
Save christoferw/d6c67d64f7350eb8fef1314cabd03271 to your computer and use it in GitHub Desktop.
Disable WordPress Core Update Notification
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
if ( function_exists('wl_stop_update_emails')) { | |
add_filter( 'auto_core_update_send_email', 'wl_stop_auto_update_emails', 10, 4 ); | |
function wl_stop_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