Skip to content

Instantly share code, notes, and snippets.

@MjHead
Created November 15, 2017 11:41
Show Gist options
  • Save MjHead/b9e418f26b00a032cdaeaedc34bc0809 to your computer and use it in GitHub Desktop.
Save MjHead/b9e418f26b00a032cdaeaedc34bc0809 to your computer and use it in GitHub Desktop.
Remove theme from updates list
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