WordPress- disable plugin update
Add this code in your plugin root file. It will prevent plugin updates notifications.
add_filter('site_transient_update_plugins', 'remove_update_notification');
function remove_update_notification($value) {
unset($value->response[ plugin_basename(__FILE__) ]);
return $value;
}
Other solution can be used in theme functions.php file. Here you need to change plugin main file url to match your case:
function my_filter_plugin_updates( $value ) {
unset( $value->response['facebook-comments-plugin/facebook-comments.php'] );
return $value;
}
add_filter( 'site_transient_update_plugins', 'my_filter_plugin_updates' );





1 Comment. Leave new
Thank you, this was super helpful!