Skip to content

Instantly share code, notes, and snippets.

@gauravkrp
Last active January 22, 2021 15:41
Show Gist options
  • Save gauravkrp/d7356fd9da9cd48bb1ab32a0c6e34a93 to your computer and use it in GitHub Desktop.
Save gauravkrp/d7356fd9da9cd48bb1ab32a0c6e34a93 to your computer and use it in GitHub Desktop.
Remove WordPress update notice for forked/nulled plugins
/**
* Add the following piece of code to themes functions.php file or include there it as a file.
* remove wordpress update notice for forked/nulled plugins
*/
function remove_update_notifications( $value ) {
if ( isset( $value ) && is_object( $value ) ) {
unset( $value->response[ 'advanced-custom-fields-pro/acf.php' ] );
}
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