Ever need to “lock” a plugin into a specific version and do not want it showing in the updates list and getting accidentally updated?
This quick snippet allows you to specify a plugin(s) that should not appear in the update list. This will effectively block them from updating through WordPress itself. Manual updates/changes to the plugin(s) is still possible however.
[php]
add_filter( ‘site_transient_update_plugins’, array( ‘no_updates_for_you’ ) );
function no_updates_for_you( $value ) {
$plugin = ‘[plugin_folder]/[plugin_file].php’;
if ( empty( $value ) || empty( $value->response[$plugin] ) ) {
return $value;
}
unset( $value->response[$plugin] );
return $value;
}
[/php]
Be sure to change [plugin_folder]/[plugin_file].php to the plugin you want to prevent updating.