Stop annoying WordPress plugin update nags

Posted By on Feb 3, 2015 | 0 comments


More for the developer this one than most clients…

When doing some maintenance on an existing site I noticed lots of updates were pending on plugins. Some of the plugins I had customised for particular purposes (which is not the right way to do it but sometimes time is of the essence!) so I didn’t want an update to overwrite all of my hard work.

So I found the cleanest way to do it was to add a few lines of code to the button of functions.php in the theme directory.

function filter_plugin_updates( $value ) {
 unset( $value->response['drop-shadow-boxes/dropshadowboxes.php'] );
 unset( $value->response['jquery-vertical-scroller/sg-jqvs-widget-plugin.php'] );
 return $value;
}
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );

Submit a Comment

Your email address will not be published.