Last active
June 23, 2018 01:37
-
-
Save cjmosure/6154302 to your computer and use it in GitHub Desktop.
Disable single Wordpress plugin update notifications
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
<?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' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could also just add this to the plugin's main php file.