wp_admin_css_color

Definition:
function wp_admin_css_color($key, $name, $url, $colors = array() {}

Registers an admin colour scheme css file.
Allows a plugin to register a new admin colour scheme. For example:

Parameters

  • string $key: The unique key for this theme.
  • string $name: The name of the theme.
  • string $url: The url of the css file containing the colour scheme.
  • array $colors: Optional An array of CSS color definitions which are used to give the user a feel for the theme.

Source code

function wp_admin_css_color($key, $name, $url, $colors = 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);

}

3419

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: