Skip to content

Instantly share code, notes, and snippets.

@mrfoxtalbot
Last active September 13, 2017 15:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrfoxtalbot/f38ad866171b47329751b23dc24e1a4e to your computer and use it in GitHub Desktop.
Save mrfoxtalbot/f38ad866171b47329751b23dc24e1a4e to your computer and use it in GitHub Desktop.
Disable updates for a specific WordPress plugin
<?php /* Use when a Plugin has been modified and should not be updated */
function disable_filter_plugin_updates( $value ) {
unset( $value->response['cms-tree-page-view/index.php'] );
return $value;
}
add_filter( 'site_transient_update_plugins', 'disable_filter_plugin_updates' );
// source: Source: http://wordpress.stackexchange.com/questions/20580/disable-update-notification-for-individual-plugins
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment