Viewing 1 replies (of 1 total)
  • Plugin Author itthinx

    (@itthinx)

    Hi,

    You can do it like this:

    $group = new Groups_Groups( $group_id );
    $users = $group->users;

    $users is an array of Groups_User objects you can iterate over, each has a WP_User object as $user->user :

    foreach( $users as $user ) {
    $user_id = $user->user->ID;
    ...
    }

    Also see http://docs.itthinx.com/document/groups/api/examples/ for more examples.

    Cheers

Viewing 1 replies (of 1 total)

The topic ‘Group User IDs’ is closed to new replies.