Skip to content

Instantly share code, notes, and snippets.

@norcross
Last active August 29, 2015 14:04
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norcross/d5c467a51ab87b9fe68b to your computer and use it in GitHub Desktop.
Save norcross/d5c467a51ab87b9fe68b to your computer and use it in GitHub Desktop.
Disable the email notification for successful update
<?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 );
@nacin
Copy link

nacin commented Aug 7, 2014

Use the auto_core_update_send_email filter instead.

@norcross
Copy link
Author

norcross commented Aug 7, 2014

noted. and updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment