Created
November 15, 2017 11:41
-
-
Save MjHead/b9e418f26b00a032cdaeaedc34bc0809 to your computer and use it in GitHub Desktop.
Remove theme from updates list
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
add_filter( 'site_transient_update_themes', 'probit_disable_update_notice' ); | |
function probit_disable_update_notice( $updates_transient ) { | |
$updates = $updates_transient->response; | |
$current_theme = get_option( 'template' ); | |
if ( isset( $updates[ $current_theme ] ) ) { | |
unset( $updates[ $current_theme ] ); | |
} | |
$updates_transient->response = $updates; | |
return $updates_transient; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment