Created
September 28, 2020 19:03
-
-
Save sarvar/820a8b568cf2ce359595dc792d190bc8 to your computer and use it in GitHub Desktop.
Disable individual theme update notification WordPress
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
function disable_theme_update_notification( $value ) { | |
if ( isset( $value ) && is_object( $value ) ) { | |
unset( $value->response['themename'] ); | |
} | |
return $value; | |
} | |
add_filter( 'site_transient_update_themes', 'disable_theme_update_notification' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment