WordPress has a build-in upgrade system. This system automatically informs you when there is an upgrade available for WordPress, or one of the themes or plugins that are installed on your WordPress installation.
To disable this update notification, there is no switch in the settings menu or anywhere else in the admin dashboard. To prevent WordPress from showing these information snippets on top of your WordPress dashboard, you shall need to add a PHP code snippet to your functions.php file.
So head over to your theme’s folder (/wp-content/themes/your-theme) and open the functions.php file.
Now past the following code at the bottom of that file:
// 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
Remove any of the last three lines if you only want to hide core updates, themes updates or plugin updates.
Save your file and the update notification in your WordPress admin area should be gone. If you work with clients, this may be an elegant solution for you to keep the interface of your client’s dashboard as simple as possible.
While you won’t be notified about any new version of WordPress with these settings, I strongly recommend to check for updates manually. WordPress updates often contain security fixes and performance improvements. Running an old version of this content management system may lead to hacking for example.
Work 100%. thanks Thomas
Can i use it with generetepress ?
i don’t want to update it, as after updating my ads are not visible on my website.
https://oprice.in/flying-beast-net-worth/
see this page for reference.
Thanks!
this works, but throws a number of errors on /wp-admin/update-core.php
It works , Thank you very much!
This works perfectly. Thank you.
This works perfectly. Thank you.
http://www.purpledotmedia.com
Thank you men
its work very well
Thank you so much
Thank you so much! functions already active
Very Good Working
How to revert? Deleting the code in functions.php does not do the trick. No updates are being shown even though I’ve tried removing the code from functions.php.
I’ve tried clearing cache etc. And have tried on 2-3 different sites where I have had this code running. Please help out here.
Very Good Working
Wow…. awesome I’ve been looking for a solution for this…
just wanted to let you guys know that this works… dated: 20 march 2020
Thanks working
it works perfectly!
Than u.
Thanks Man,
That’s what I was looking for a long time.
This snippet disables not just automatic updates, but manual updates, too.
Folks: do not use this snippet. You won’t get security updates for themes or plugins, and your site will get hacked.
This technique was referenced in a WordPress bug report comment.
You are now famous (or should I say infamous). See https://core.trac.wordpress.org/ticket/51836#comment:7
thanks! Its work.
How can i hide this “WooCommerce database update required”
Love it
It’s work for us but how can i follow updates?
https://kuaforumden.com/
Thanks a ton…guided properly and it’s working properly…
It works, thank you!!
Thank you, it works
mhack.pro
Great solution.
Very simple and functional.
Thanks
Thanks man it worked.