Skip to content

Instantly share code, notes, and snippets.

@norcross
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save norcross/d5c467a51ab87b9fe68b to your computer and use it in GitHub Desktop.

Select an option

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

nacin commented Aug 7, 2014

Copy link
Copy Markdown

Use the auto_core_update_send_email filter instead.

@norcross

norcross commented Aug 7, 2014

Copy link
Copy Markdown
Author

noted. and updated.

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