Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is there a bp function to add a user to a group?

  • Is there something like a bp_group_add_user($user_id, $group_id) ?

    I want to add all registered users to a general user group.

Viewing 1 replies (of 1 total)
  • `
    $group = new BP_Groups_Group( $group_id );
    groups_invite_user( array( ‘user_id’ => $user_id, ‘group_id’ => $group_id, ‘inviter_id’ => $group->creator_id, ‘is_confirmed’ => $is_confirmed ) );
    groups_send_invites( $group->creator_id, $group_id );
    `

Viewing 1 replies (of 1 total)
  • The topic ‘Is there a bp function to add a user to a group?’ is closed to new replies.
Skip to toolbar