Skip to content

Instantly share code, notes, and snippets.

@danielmcclure
Created June 21, 2023 22:47
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 danielmcclure/a1794f4765dd2ff4610f5b87304e4be9 to your computer and use it in GitHub Desktop.
Save danielmcclure/a1794f4765dd2ff4610f5b87304e4be9 to your computer and use it in GitHub Desktop.
Disable WP Auto Update Notifications
<?p
// Disable WordPress Core Update Notifications
add_filter( 'auto_core_update_send_email', 'tme_stop_auto_update_emails', 10, 4 );
function tme_stop_update_emails( $send, $type, $core_update, $result ) {
if ( ! empty( $type ) && $type == 'success' ) {
return false;
}
return true;
}
// Disable WordPress Plugin Update Notifications
add_filter( 'auto_plugin_update_send_email', '__return_false' );
// Disable WordPress Theme Update Notifications
add_filter( 'auto_theme_update_send_email', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment