How to get the user role for the current logged in user in Wordpress

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);

20 September, 2012 · 1 min · 21 words · Alexandru Bucur