Support » Plugin: Members » Get assigned user roles to certain user

  • Hi!

    Thanks for a great plugin. Its great to be able to add multible user roles to each user but how can i access all assigned user roles to user with php.

    To access the assigned user role in wordpress i normally use:

    global $current_user;

    $user_roles = $current_user->roles;
    $user_role = array_shift($user_roles);

    But doing so I dont seem to get all the assigned user roles, just the original one. How do i write to get them all?

    Many thanks

    Ola Eborn

  • The topic ‘Get assigned user roles to certain user’ is closed to new replies.