WordPress at a glance
function is not described

wp_admin_css_color() WP 2.5.0

Registers an admin colour scheme css file.

Allows a plugin to register a new admin colour scheme. For example:

wp_admin_css_color( 'classic', __( 'Classic' ), admin_url( "css/colors-classic.css" ), array(
	'#07273E', '#14568A', '#D54E21', '#2683AE'
) );
  • Global. Array. $_wp_admin_css_colors

No Hooks.

Return

Nothing (null).

Usage

wp_admin_css_color( $key, $name, $url, $colors, $icons );
$key(string) (required)
The unique key for this theme.
$name(string) (required)
The name of the theme.
$url(string) (required)
The URL of the CSS file containing the color scheme.
$colors(array)
An array of CSS color definition strings which are used to give the user a feel for the theme.
Default: array()
$icons(array)

CSS color definitions used to color any SVG icons.

  • $base (string)
    SVG icon base color.

  • $focus (string)
    SVG icon color on focus.

  • $current (string)
    SVG icon color of current admin menu link.

Default: array()

Code of wp admin css color: wp-includes/general-template.php VER 5.0.3

<?php
function wp_admin_css_color( $key, $name, $url, $colors = array(), $icons = array() ) {
	global $_wp_admin_css_colors;

	if ( !isset($_wp_admin_css_colors) )
		$_wp_admin_css_colors = array();

	$_wp_admin_css_colors[$key] = (object) array(
		'name' => $name,
		'url' => $url,
		'colors' => $colors,
		'icon_colors' => $icons,
	);
}