Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

WordPress: Default Admin Color Scheme

View default-admin-color-scheme.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?

The global $_wp_admin_css_colors is not needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.