Skip to content

Instantly share code, notes, and snippets.

@christoferw
Last active August 4, 2017 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christoferw/d6c67d64f7350eb8fef1314cabd03271 to your computer and use it in GitHub Desktop.
Save christoferw/d6c67d64f7350eb8fef1314cabd03271 to your computer and use it in GitHub Desktop.
Disable WordPress Core Update Notification
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