Created
May 19, 2018 10:49
-
-
Save DuckDivers/eb663a24000ebda04f41951130deb50d to your computer and use it in GitHub Desktop.
Prevent Plugin from Updating
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 to Plugin main file | |
add_filter('site_transient_update_plugins', 'dd_remove_update_nag'); | |
function dd_remove_update_nag($value) { | |
unset($value->response[ plugin_basename(__FILE__) ]); | |
return $value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment