Are you a web designer or developer and you want to hide the Update Available Notification of your’s WordPress website or client’s website then you are at right place. Here we have posted the 2 methods of hiding updates notifications in WordPress.
This section is divided into 2 parts.
- The first section is all about Disabling WordPress Themes Update
- And the second section is how to disable WordPress Plugins Update.
Let’s begin to disabling these notification.
2 Methods to Disable WordPress Theme Updates
1. Hide WordPress Theme Update Available Notification
We have made and used child theme of one WordPress theme. Later the parent theme got a new version and our client updated that which destroyed child theme’s customization. So I googled to Hide WordPress Theme Update Available Notification.
I got solutions regarding WordPress core and plugins update including action and hooks but didn’t get any simple trick to Hide WordPress Theme Update Available Notification. Later I realized that I could just edit the parent theme’s style.css and set the toVersion:
something ridiculously high from the WordPress specific CSS header right at the top. And the notification (and oh so dangerous link) went away!
So let’s say if your parent theme has version 2.2.5 at present and if you change it to Version: 9.9.9
(anything much higher than the current version in ‘theme/style.css‘) then the theme update available notification will be disabled until theme author doesn’t release version 9.9.10.
2. Remove WordPress Theme Update Notifications
I’ve built and maintain many WordPress websites. I really love WordPress’ ease of update, however having to maintain these sites I greatly dislike the constant theme updates. I understand the need to update themes you use, but why do I need to download a new Twenty-x theme every 12 months?
In an effort to lighten my workload I went in search for a quick fix but came up empty handed. A quick poke through the WP core showed a handy filter I could change too quickly get my desired result.
Unfortunately, because this is admin core functionality it needed to be in a plugin. If you have a base theme plugin add this to that, otherwise use as is.
<?php /** * @package Remove_Theme_Updates * @version 1.0 */ /* Plugin Name: Remove Theme Updates Plugin URI: http://extracatchy.net/ Description: Remove annoying theme updates from WordPress. Don't use if you need your themes automatically updated. Author: Hunk Riyaz Version: 1.0 Author URI: http://extracatchy.net/ */ add_filter('site_transient_update_themes', 'remove_update_themes', 100, 1); function remove_update_themes($value) { return null; } ?>
Disable WordPress Plugin Update Notification
Insert the following code to the functions.php file of your active theme. It will remove the update notifications of all the installed plugins.
<?php /** * @package Remove_Plugin_Updates * @version 1.0 */ /* Plugin Name: Remove Plugin Updates Plugin URI: http://extracatchy.net/ Description: Remove annoying theme updates from WordPress. Don't use if you need your themes automatically updated. Author: Hunk Riyaz Version: 1.0 Author URI: http://extracatchy.net/ */ remove_action('load-update-core.php','wp_update_plugins'); add_filter('pre_site_transient_update_plugins','__return_null'); ?>
Thanks buddy
Submit
Theme
Unpublished
I did not get what you want to tell me?
kkkk