Last active
September 13, 2017 15:01
-
-
Save mrfoxtalbot/f38ad866171b47329751b23dc24e1a4e to your computer and use it in GitHub Desktop.
Disable updates for a specific WordPress plugin
This file contains 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 /* 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