Ever wished you could automatically add newly-registered users to a specific BuddyPress Group? I’ve had a number of clients make this request, and it turns out to be easier than I’d initially expected. Simply paste the following code into your theme’s functions.php file, replace
<# group ID #> on line five with the numeric ID of the desired group, and any users who join after that will automatically become members of the group. I’ve tested this snippet with BuddyPress 1.2.x.