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

February 12, 2011 


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