Summery Summery

Registers an admin color scheme css file.

Syntax Syntax

wp_admin_css_color( string $key, string $name, string $url, array $colors = array(), array $icons = array() )

Description Description

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

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

Parameters Parameters


(string) (Required) The unique key for this theme.


(string) (Required) The name of the theme.


(string) (Required) The URL of the CSS file containing the color scheme.


(array) (Optional) An array of CSS color definition strings which are used to give the user a feel for the theme.

Default value: array()


(array) (Optional) 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 value: array()

Source Source

File: wp-includes/general-template.php

	$mid_size = (int) $args['mid_size'];
	if ( $mid_size < 0 ) {
		$mid_size = 2;

	$add_args   = $args['add_args'];
	$r          = '';
	$page_links = array();
	$dots       = false;

	if ( $args['prev_next'] && $current && 1 < $current ) :
		$link = str_replace( '%_%', 2 == $current ? '' : $args['format'], $args['base'] );
		$link = str_replace( '%#%', $current - 1, $link );
		if ( $add_args ) {


Changelog Changelog

Version Description
2.5.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.