I want to make a plugin which can assign multiple roles to a single user. Some say its not possible to assign multiple roles in wordpress then why wordpress has provided 'roles' in array form. e.g when i call roles of user it returns array
$current_user=wp_get_current_user();
$user_roles = $current_user->roles;
here $user_roles will be an array return by roles.
Is there any function through which i can assign multiple role to a single user