register_admin_color_schemes

Registers the default Admin color schemes.

Description

register_admin_color_schemes(); 

Usage

  1. if ( !function_exists( 'register_admin_color_schemes' ) ) { 
  2. require_once ABSPATH . WPINC . '/general-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = register_admin_color_schemes(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/general-template.php  
  1. function register_admin_color_schemes() { 
  2. $suffix = is_rtl() ? '-rtl' : ''; 
  3. $suffix .= SCRIPT_DEBUG ? '' : '.min'; 
  4.  
  5. wp_admin_css_color( 'fresh', _x( 'Default', 'admin color scheme' ),  
  6. false,  
  7. array( '#222', '#333', '#0073aa', '#00a0d2' ),  
  8. array( 'base' => '#82878c', 'focus' => '#00a0d2', 'current' => '#fff' ) 
  9. ); 
  10.  
  11. // Other color schemes are not available when running out of src 
  12. if ( false !== strpos( get_bloginfo( 'version' ), '-src' ) ) { 
  13. return; 
  14.  
  15. wp_admin_css_color( 'light', _x( 'Light', 'admin color scheme' ),  
  16. admin_url( "css/colors/light/colors$suffix.css" ),  
  17. array( '#e5e5e5', '#999', '#d64e07', '#04a4cc' ),  
  18. array( 'base' => '#999', 'focus' => '#ccc', 'current' => '#ccc' ) 
  19. ); 
  20.  
  21. wp_admin_css_color( 'blue', _x( 'Blue', 'admin color scheme' ),  
  22. admin_url( "css/colors/blue/colors$suffix.css" ),  
  23. array( '#096484', '#4796b3', '#52accc', '#74B6CE' ),  
  24. array( 'base' => '#e5f8ff', 'focus' => '#fff', 'current' => '#fff' ) 
  25. ); 
  26.  
  27. wp_admin_css_color( 'midnight', _x( 'Midnight', 'admin color scheme' ),  
  28. admin_url( "css/colors/midnight/colors$suffix.css" ),  
  29. array( '#25282b', '#363b3f', '#69a8bb', '#e14d43' ),  
  30. array( 'base' => '#f1f2f3', 'focus' => '#fff', 'current' => '#fff' ) 
  31. ); 
  32.  
  33. wp_admin_css_color( 'sunrise', _x( 'Sunrise', 'admin color scheme' ),  
  34. admin_url( "css/colors/sunrise/colors$suffix.css" ),  
  35. array( '#b43c38', '#cf4944', '#dd823b', '#ccaf0b' ),  
  36. array( 'base' => '#f3f1f1', 'focus' => '#fff', 'current' => '#fff' ) 
  37. ); 
  38.  
  39. wp_admin_css_color( 'ectoplasm', _x( 'Ectoplasm', 'admin color scheme' ),  
  40. admin_url( "css/colors/ectoplasm/colors$suffix.css" ),  
  41. array( '#413256', '#523f6d', '#a3b745', '#d46f15' ),  
  42. array( 'base' => '#ece6f6', 'focus' => '#fff', 'current' => '#fff' ) 
  43. ); 
  44.  
  45. wp_admin_css_color( 'ocean', _x( 'Ocean', 'admin color scheme' ),  
  46. admin_url( "css/colors/ocean/colors$suffix.css" ),  
  47. array( '#627c83', '#738e96', '#9ebaa0', '#aa9d88' ),  
  48. array( 'base' => '#f2fcff', 'focus' => '#fff', 'current' => '#fff' ) 
  49. ); 
  50.  
  51. wp_admin_css_color( 'coffee', _x( 'Coffee', 'admin color scheme' ),  
  52. admin_url( "css/colors/coffee/colors$suffix.css" ),  
  53. array( '#46403c', '#59524c', '#c7a589', '#9ea476' ),  
  54. array( 'base' => '#f3f2f1', 'focus' => '#fff', 'current' => '#fff' ) 
  55. ); 
  56.