Created
February 18, 2015 20:10
-
-
Save chuckreynolds/e7bab9e27e7657d2dcd8 to your computer and use it in GitHub Desktop.
WordPress function to disable plugin updates for a specific plugin; using akismet as an example.
This file contains hidden or 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
| /* disable updates for specific plugin in WordPress */ | |
| function disable_specific_plugin_updates( $value ) { | |
| unset( $value->response['akismet/akismet.php'] ); | |
| return $value; | |
| } | |
| add_filter( 'site_transient_update_plugins', 'disable_specific_plugin_updates' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment