Created
June 21, 2023 22:47
-
-
Save danielmcclure/a1794f4765dd2ff4610f5b87304e4be9 to your computer and use it in GitHub Desktop.
Disable WP Auto Update Notifications
This file contains hidden or 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
<?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