1 2 3 4 5 6 7 | // 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 |
Reference: