Created
August 14, 2020 03:30
-
-
Save trvswgnr/e329097a043a43ca9788008973235a10 to your computer and use it in GitHub Desktop.
WordPress disable updates for specific plugins
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 updates for specied plugins. | |
* | |
* @param object $value Plugins update list. | |
*/ | |
function taw_disable_specified_plugin_updates( $value ) { | |
unset( $value->response['some-plugin/some-plugin.php'] ); | |
return $value; | |
} | |
add_filter( 'site_transient_update_plugins', 'taw_disable_specified_plugin_updates' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment