WordPress: Default Admin Color Scheme

  • Download Gist
default-admin-color-scheme.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php
 
add_filter( 'get_user_option_admin_color', function( $color_scheme ) {
 
global $_wp_admin_css_colors;
 
if ( 'classic' == $color_scheme || 'fresh' == $color_scheme ) {
$color_scheme = 'ectoplasm';
}
 
return $color_scheme;
 
}, 5 );

Can you explain why $_wp_admin_css_colors is present?

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.