Created
June 17, 2015 11:02
-
-
Save arioch1984/96ddb0fd6a40272fb7ba to your computer and use it in GitHub Desktop.
WP: disable plugin update messages #wp_disable_plugin_update
This file contains hidden or 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 update message | |
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