Last active
April 12, 2018 12:36
-
-
Save 5A5K1A/4c6acadee49e38e6a9752e5777802ec6 to your computer and use it in GitHub Desktop.
WordPress Admin Color Scheme
This file contains 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
<?php | |
function custom_admin_color_scheme() { | |
wp_admin_css_color( | |
'scheme_name', | |
__('Scheme Name', 'domain'), | |
admin_url("/css/colors/scheme_name/colors.css"), | |
array('#07273E', '#14568A', '#07273E', '#07273E'), | |
array('base' => '#e5f8ff', 'focus' => '#fff', 'current' => '#fff') | |
); | |
add_filter( 'get_user_option_admin_color', function() { | |
return 'scheme_name'; | |
}); | |
} | |
add_action( 'admin_init', 'custom_admin_color_scheme' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment