Are you creating a WordPress website for a client which doesn’t require any updates? Then you may want to disable update notifications in WordPress. An update notification would look a bit scary to the client, so removing it is a better idea.
Just put the following code into functions.php file of your current theme:
//Disable Theme Updates remove_action( 'load-update-core.php', 'wp_update_themes' ); add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) ); wp_clear_scheduled_hook( 'wp_update_themes' ); //Disable Plugin Updates remove_action( 'load-update-core.php', 'wp_update_plugins' ); add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) ); wp_clear_scheduled_hook( 'wp_update_plugins' ); //Diasable Core Updates add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) ); wp_clear_scheduled_hook( 'wp_version_check' );
You can also drop this code to disable update notifications for everyone except the administrators.
Thank you frend..