admin_color_scheme_picker
函数
admin_color_scheme_picker ( $user_id )
- 参数
-
-
(int)
$user_id
User ID.- Required: 是
-
(int)
- 定义位置
-
-
wp-admin/includes/misc.php
, line 989
-
wp-admin/includes/misc.php
- 引入
- 3.0.0
- 弃用
- –
Displays the default admin color scheme picker (Used in user-edit.php).
function admin_color_scheme_picker( $user_id ) { global $_wp_admin_css_colors; ksort( $_wp_admin_css_colors ); if ( isset( $_wp_admin_css_colors['fresh'] ) ) { // Set Default ('fresh') and Light should go first. $_wp_admin_css_colors = array_filter( array_merge( array( 'fresh' => '', 'light' => '', 'modern' => '', ), $_wp_admin_css_colors ) ); } $current_color = get_user_option( 'admin_color', $user_id ); if ( empty( $current_color ) || ! isset( $_wp_admin_css_colors[ $current_color ] ) ) { $current_color = 'fresh'; } ?>
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。