Last active
February 15, 2016 00:30
-
-
Save bitkidd/5ba0811c2a8ca09d71b4 to your computer and use it in GitHub Desktop.
Discourage wordpress 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 | |
// Add this to your functions.php | |
// Discourage wordpress plugin updates | |
function no_plugin_updates($value) { | |
unset($value->response[ plugin_basename('pluginfolder/pluginfile.php') ]); | |
return $value; | |
} | |
add_filter('site_transient_update_plugins', 'no_plugin_updates'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment