Disable WordPress plugin update
To disable specific plugin updates you can use the below code. The below code reads the array of the plugin list and removes the element(plugin) that you are editing.
Method 1: Put this code on the plugin’s main file
add_filter('site_transient_update_plugins', 'twc_remove_update_notification');
function twc_remove_update_notification($value) {
unset($value->response[ plugin_basename(__FILE__) ]);
return $value;
}
Method 2: Change the version of the plugin, Do this by changes to the main file of the plugin.
Plugin Name: Contact Form
Plugin URI: https://the-webcoder.com/
Version: 9999
Disable WordPress theme update
One easy method is to access the theme’s style and change the version number to 9999.
/*
Theme Name: Theme Name
Author: Name
Author URI: https://the-webcoder.com/
Description: Lorem ipsum
Version: 9999
*/
If it still doesn’t work, please reach out to us. We are happy to help you.