Skip to content

Instantly share code, notes, and snippets.

@cjmosure
Last active June 23, 2018 01:37
Show Gist options
  • Save cjmosure/6154302 to your computer and use it in GitHub Desktop.
Save cjmosure/6154302 to your computer and use it in GitHub Desktop.
Disable single Wordpress plugin update notifications
<?php
// Disable update notification for individual plugins
function filter_plugin_updates( $value ) {
unset( $value->response['block-spam-by-math-reloaded/block-spam-by-math-reloaded.php'] );
return $value;
}
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );
?>
@cjmosure
Copy link
Author

cjmosure commented Aug 5, 2013

You could also just add this to the plugin's main php file.

<?php
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