Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress- how to disable plugin update

I've found a great plugin for WordPress under GPLv2 license and made a lot of changes in source code, plugin does something else now. I modified author (with original plugin author's credits), URL, version number (from xxx 1.5 to YYY 1.0).

Everything works great, but when WordPress checks for plugin updates it treats my plugin YYY 1.0 as xxx 1.0 and displays notification about available update.

My changed plugin YYY 1.0 was installed by copying files from my computer, not from WP repository.

What else do I have to change?

like image 217
pp_1 Avatar asked Jul 27 '13 11:07

pp_1


People also ask

How do I enable a plugin update in WordPress?

Simply visit the Plugins » Installed Plugins page inside WordPress admin area. Here you'll see the list of all your installed plugins with a link to 'Enable auto-updates' next to each plugin. You need to click on the 'Enable auto-updates' link to turn on automatic updates for individual plugins.

Should WordPress plugins update automatically?

To keep your WordPress site secure, you should always update your plugins and themes to the latest version.

How do I hide updates in WordPress?

Create a new folder under the wp-content/plugins folder of your installation and name it hide-update-notification or something similar. Inside it create a file called hide-update-notification. php or something similar. Inside the file paste this code.

How do I stop WordPress plugins from installing?

For more details, see our step by step guide on how to install a WordPress plugin. Upon activation, you need to visit Plugins » Plugin Deactivation Settings page to configure plugin options. Simply select 'Enable' next to 'Disable Plugin Deactivation' option to turn off the 'Deactivate' link for all plugins.


1 Answers

Disable plugin update

Add this code in your plugin root file.

add_filter('site_transient_update_plugins', 'remove_update_notification'); function remove_update_notification($value) {      unset($value->response[ plugin_basename(__FILE__) ]);      return $value; }  
like image 156
Kishan Chauhan Avatar answered Sep 28 '22 09:09

Kishan Chauhan