automating users joining certain groups
-
I am using the following code to automate users joining certain groups. It doesn’t appear to leave the standard “so-and-so joined the so-and-so group” in the Site Wide Activity. Any ideas? I can’t see what BP normally does that I don’t.
<br />
foreach ($default_groups as $group_id) {<br />
$group = new BP_Groups_Group( $group_id );<br />
groups_invite_user( array( 'user_id' => $user_id, 'group_id' => $group_id, 'inviter_id' => $group->creator_id ) );<br />
groups_send_invites( $group->creator_id, $group_id );<br />
}<br />
- The topic ‘automating users joining certain groups’ is closed to new replies.