Paul Gibbs replied to the topic add user to group when user is added via dashboard in the forum How-to & Troubleshooting 2 years, 4 months ago
@anrahulpandey Check the function declaration for
groups_join_group()inside BuddyPress’ files!
function groups_join_group( $group_id, $user_id = 0 )
I think you are specifying the user_id and group_id parameters in the wrong order. 🙂
@anrahulpandey active 2 years, 3 months ago