Quick and easy way of getting the current role in a Wordpress Setup

1
2
$current_user = wp_get_current_user();
$current_user_role = ($current_user->roles);