hide update notifications (ok)

// hide update notifications
function remove_core_updates(){
    global $wp_version;
    return(object) array('last_checked'=> time(),'version_checked'=> $wp_version);
}
add_filter('pre_site_transient_update_core','remove_core_updates'); //hide updates for WordPress itself
add_filter('pre_site_transient_update_plugins','remove_core_updates'); //hide updates for all plugins
add_filter('pre_site_transient_update_themes','remove_core_updates'); //hide updates for all themes
add_filter( 'plugins_auto_update_enabled', '__return_false' ); //  disable automatic updates for WordPress plugins
add_filter( 'themes_auto_update_enabled', '__return_false' ); //  disable automatic updates for WordPress themes
define( 'wp_auto_update_core', false );

Last updated