Last active
January 22, 2021 15:41
-
-
Save gauravkrp/d7356fd9da9cd48bb1ab32a0c6e34a93 to your computer and use it in GitHub Desktop.
Remove WordPress update notice for forked/nulled plugins
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
/** | |
* 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