src/HyyanAdminColorSchema.php
/**
     * Register the default color schmea for every new registered user
     * 
     * @param int $userId the user id
     */
Register the default color schmea for every new registered user

@param int $userId the user id
Register the default color schmea for every new registered user @param int $userId the user id
public function registerDefaultColorSchema($userId) {
        $setting = $this->getOptions();
        if ($setting['default']) {
            wp_update_user(array(
                'ID' => $userId,
                'admin_color' => $setting['default']
            ));
        }
    }
public function registerDefaultColorSchema ( $ userId ) { $ setting = $ this -> getOptions ( ) ; if ( $ setting [ 'default' ] ) { wp_update_user ( array ( 'ID' => $ userId , 'admin_color' => $ setting [ 'default' ] ) ) ; } }
Register the default color schmea for every new registered user
Register the default color schmea for every new registered user