/**

    *WordPress 后台随机颜色

    *https://www.weixiaoduo.com/random-admin-color/

*/

functionBing_random_admin_color(){

    static$color;

    if(isset($color))return$color;

    $color=array_keys($GLOBALS['_wp_admin_css_colors']);

    $color=$color[array_rand($color)];

    return$color;

}

add_filter('get_user_option_admin_color','Bing_random_admin_color');