Last active
May 27, 2017 04:08
-
-
Save nielslange/94eee7281a0a48cbfb6cf67d4e240acb to your computer and use it in GitHub Desktop.
Disable plugin updates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Disable plugin updates | |
add_filter( 'site_transient_update_plugins', 'nl_disable_plugin_updates' ); | |
function nl_disable_plugin_updates( $value ) { | |
unset( $value->response['woocommerce/woocommerce.php'] ); | |
return $value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment