Skip to content

Instantly share code, notes, and snippets.

@aslafy-z
Forked from cjmosure/functions.php
Last active June 19, 2018 10:57
Show Gist options
  • Save aslafy-z/4e1d4450612bb9d33cfc60b8aeb5f184 to your computer and use it in GitHub Desktop.
Save aslafy-z/4e1d4450612bb9d33cfc60b8aeb5f184 to your computer and use it in GitHub Desktop.
Disable single Wordpress plugin update notifications
<?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