Skip to content

Instantly share code, notes, and snippets.

View arenagroove's full-sized avatar

Luis Alberto Martinez arenagroove

  • Less Rain GmbH
  • Vilanova i la Geltrú, Catalonia, Spain
  • 03:56 (UTC +02:00)
  • LinkedIn in/luis-martinez-lr
View GitHub Profile
@arenagroove
arenagroove / admin-color-scheme-fix.php
Created May 27, 2026 09:32 — forked from petertwise/admin-color-scheme-fix.php
WordPress 7.0 Admin Color Scheme Fix
<?php
/**
* Plugin Name: WP 7.0 Admin Color Scheme Fix
* Description: Restores Fresh as default admin color scheme; removes "Modern" option (new default); Restores contrast on notices.
*/
defined( 'ABSPATH' ) || exit;
add_filter( 'get_user_option_admin_color', function( $color, $option, $user ) {
if ( empty( $color ) || 'modern' === $color ) {