https://sangkrit.net/how-to-allow-users-to-join-groups-from-buddypress-registration-page/
Enable Users To Join Groups From Registration Page In BuddyPress