Looking for a way to disable plugin update notifications within WordPress? With a few lines of code dropped into your functions.php file this can be accomplished.
Why would you want to disable plugin updates within the WordPress admin area?
- You don’t want the plugin updated as you’ve put custom code directly into the plugin fold and do not want it overwritten
- You don’t want the plugin updated as it’s not yet compatible with the version of WordPress you’re running
- You don’t want other admins accidentally updating the plugin
- To prevent the accidental update of plugins until ready
In the below example I’m disabling 3 different plugins from showing as needing updates, the Perfect WooCommerce Brands, WooCommerce Predictive Search and WooCommerce Email My Cart.
function filter_plugin_updates( $value ) { unset( $value->response['perfect-woocommerce-brands/main.php'] ); unset( $value->response['woocommerce-predictive-search/wc-predictive-search.php'] ); unset( $value->response['woocommerce-email-cart/email-cart.php']); return $value; } add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );
The path you’ll find in your wp-content/plugins/ then the folder name of the plugin. Then within the plugin folder you’ll find the main .php file that has the plugin information in the header. Type that up and unset it like the example above and you’re all finished. Keep in mind this is only a solution for some and if possible you should be customizing plugins correctly and not modifying the core code.