Disable update notification for specific / individual WordPress plugins

You should always keep your plugins and WordPress versions up-to-date to avoid any security vulnerability. However there maybe times when you need stop a plugin from updating, for example when you have modified it. The following code snippet will stop any update notifications for a specific plugin.

/* Put this code in current theme’s functions.php */
/* Replace plugin-directory/plugin-file.php with plugin’s directory and file name */
function filter_plugin_updates( $value ) {
unset( $value->response['plugin-directory/plugin-file.php'] );
return $value;
}
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );

view raw
functions.php
hosted with ❤ by GitHub

You have to put the above code at the end of your wp-config.php file.

* Don’t forget to change line 5 with the appropriate plugin name / path (eg. akismet/akismet.php for akistmet plugin).

2 thoughts on “Disable update notification for specific / individual WordPress plugins

  1. hamadabader

    not work ,, get white page in all site

    • Dipak C. Gajjar

      Could you provide more info. including the code you’ve added in your wp-config.php file?

Leave a Reply


Please note: These tutorials are meant to be helpful, but please note that I can not and will not be able to help with any implementations or modifications.

tl;dr If you do not understand it, hire me to do it.