Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_admin_css_color [ WordPress Function ]

wp_admin_css_color ( $key, $name, $url, $colors = array() )
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.
Defined at:



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

Source


<?php
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);
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics