Skip to content

Instantly share code, notes, and snippets.

@peterwegren
Created February 8, 2017 17:14
Show Gist options
  • Save peterwegren/0b297f3ab6e00b042f52036df51401d2 to your computer and use it in GitHub Desktop.
Save peterwegren/0b297f3ab6e00b042f52036df51401d2 to your computer and use it in GitHub Desktop.
Hide WP plugin updates.
<?php
function filter_plugin_updates( $value ) {
unset( $value->response['akismet/akismet.php'] );
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