0

Disable WordPress Update Notification Emails

Disable core update emails:

add_filter( 'auto_core_update_send_email', '__return_false' );

Disable plugin update emails:

add_filter( 'auto_plugin_update_send_email', '__return_false' );

Disable theme update emails:

add_filter( 'auto_theme_update_send_email', '__return_false' );

Hide Update Notifications In Dashboard

// Hide dashboard update notifications for all users
function c2code_hide_update_nag() {
remove_action( 'admin_notices', 'update_nag', 3 );
}
 add_action('admin_menu','c2code_hide_update_nag');

Disable update notification for individual plugins

function filter_plugin_updates( $value ) {
    unset( $value->response['akismet/akismet.php'] );
    return $value;
}
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );

admin Asked question December 9, 2022
Add a Comment