WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wp admin css color

Contents

Description

Registers an admin colour scheme css file.

Allows a plugin to register a new admin colour scheme.

Usage

 <?php wp_admin_css_color$key$name$url$colors$icons ); ?> 

Parameters

$key
(string) (required) The unique key for this theme.
Default: None
$name
(string) (required) The name of the theme.
Default: None
$url
(string) (required) The url of the css file containing the colour scheme.
Default: None
$colors
(array) (optional) An array of CSS color definitions which are used to give the user a feel for the theme.
Default: None
$icons
(array) (optional) An array of CSS color definitions used to color any SVG icons.
Default: None

Example

To register the classic(blue) scheme use:

 wp_admin_css_color(
   'classic',
   __('Blue'),
   admin_url("css/colors-classic.css"),
   array('#07273E', '#14568A', '#D54E21', '#2683AE')
 );

Change Log

Source File

wp_admin_css_color() is located in wp-includes/general-template.php.

Further Reading

Related

register_admin_color_schemes()

See also index of Function Reference and index of Template Tags.