Disable plugin updates in WordPress


Disable all plugin updates:-
function aviweb_disable_plugin_updates( $values ) {

foreach($values as $value) {
unset( $value->response[‘plugin/plugin.php’] );
}
return;
}
add_filter( ‘site_transient_update_plugins’, ‘aviweb_disable_plugin_updates’ );

Disable single plugin update:-
function aviweb_disable_plugin_updates( $value ) {
unset( $value->response[‘plugin_name/plugin_file.php’] );
return $value;
}
add_filter( ‘site_transient_update_plugins’, ‘aviweb_disable_plugin_updates’ );

Advertisement

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 )

Connecting to %s