Created
October 27, 2020 20:57
-
-
Save tdrayson/0026987efbec764bb2a91cd8627a2437 to your computer and use it in GitHub Desktop.
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
// remove update notice for forked plugins | |
function remove_update_notifications($value) { | |
if ( isset( $value ) && is_object( $value ) ) { | |
unset( $value->response[ plugin_basename(__FILE__) ] ); | |
} | |
return $value; | |
} | |
add_filter( 'site_transient_update_plugins', 'remove_update_notifications' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment