Sunday, 19 January 2014

How To Disable Plugin Updates

Some of wordpress users love to disable the plugin updates because latest version of the plugin may does not support the mechanism of other plugins, some users disable plugin updates, in order to disable plugin updates there is a simple code to add in functions.php which automatically disable plugin updates.


//DISABLE PLUGIN UPDATES.
remove_action( 'load-update-core.php', 'wp_update_plugins' );
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );



No comments:

Post a comment