Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_admin_css_color ›

Desde2.5.0
Obsoleton/a
wp_admin_css_color ( $key, $name, $url, $colors = array(), $icons = array() )
Parâmetros: (5)
  • (string) $key The unique key for this theme.
    Required: Yes
  • (string) $name The name of the theme.
    Required: Yes
  • (string) $url The URL of the CSS file containing the color scheme.
    Required: Yes
  • (array) $colors Optional. An array of CSS color definition strings which are used to give the user a feel for the theme.
    Required: No
    Padrão: array()
  • (array) $icons { Optional. CSS color definitions used to color any SVG icons.
    Required: No
    Padrão: array()
Definido em:
Codex:

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'
) );


Fonte

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,
	);
}