wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_admin_css_color › WordPress Function
Seit2.5.0
Veraltetn/v
› wp_admin_css_color ( $key, $name, $url, $colors = array(), $icons = array() )
Parameter: (5) |
|
Definiert in: |
|
Codex: |
Registers an admin color scheme css file.
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' ) );Ähnliche Funktionen: wp_admin_css_uri, wp_admin_css, wp_admin_canonical_url, wp_admin_notice, wp_custom_css_cb
Quellcode
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, ); }