-
-
Save aslafy-z/4e1d4450612bb9d33cfc60b8aeb5f184 to your computer and use it in GitHub Desktop.
Disable single Wordpress plugin update notifications
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 update notification for individual plugin (current) | |
function filter_plugin_updates($value) { | |
if ($value) { | |
unset($value->response[plugin_basename(__FILE__)]); | |
} | |
return $value; | |
} | |
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment