Created
October 1, 2021 06:31
-
-
Save joychetry/2da378baa7df283cd7dc4c86600437cd to your computer and use it in GitHub Desktop.
Remove Plugin Update Notifications
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
// Remove plugin update notifications | |
function remove_update_notifications( $value ) { | |
if ( isset( $value ) && is_object( $value ) ) { | |
unset( $value->response[ 'plugin-folder/plugin.php' ] ); | |
} | |
return $value; | |
} | |
add_filter( 'no_update_notifications', 'remove_update_notifications' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment