Disable Updates Notifications

Disable Updates for individual Plugin
If you don't want user to update your customized plugin then you can disable the update notifications for that plugin.

PLACE CODE IN FUNCTIONS.PHP

	/*remembar that use different function name instead of disable_plugin_update at other places, if you want to disable other plugins too.*/

	add_filter('site_transient_update_plugins', 'disable_plugin_update');
	function disable_plugin_update($value){
		unset($value->response['plugins_folder_name/plugin_main_file_name']);
		return $value;
	}
	
Disable Plugins, Themes, WordPress version automatically update checking
Method 1 : Best way to stop checking updates for all at once

	add_filter('pre_site_transient_update_core', create_function('$a', "return null;")); // screening CORE update (WordPress Version)
	add_filter('pre_site_transient_update_plugins', create_function('$a', "return null;")); // screening PLUGIN update
	add_filter('pre_site_transient_update_themes', create_function('$a', "return null;")); // screening THEME update

Method 2 to disable theme update checking :

	------To disable updating the theme automatically.------

	Just Delete ‘Version’ line altogether from the theme’s style.css file.
	or just replace it with current version number.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s