Depending on the size of your userbase, you could make all the groups Hidden, then use the Invite Anyone plugin to manually invite (or have established group admins manually invite) the users who belong in each separate group. Don’t get thrown by the first bullet in the description of the plugin, in this instance the power of this plugin will be in your ability to invite people to a group even if you aren’t friends with them (bullet 2 in the description on the link below). Perfect if you are using the Followers plugin as well and have Friend Connections turned off:
https://wordpress.org/extend/plugins/invite-anyone/
https://wordpress.org/extend/plugins/buddypress-followers/
Thanks for the reply. That’s a very clever solution. So the only people that could invite someone to a group is the admin of that group or could anyone who is a member of that group invite someone?
I do want members of one group to be able to see other groups though, so maybe this wont work.
Put If Condition around the code which display Group Join/Leave Button…
Go to your Database and search in table groups_members… If current Logged in user id exists in that table, then the join of leave button will not appear to that logged in user…
So there will be no need to set private groups.. it will only show the joining option to the members who have not joined any group…
Hi Nasir, that is an excellent solution. Thank you, and mrjarbenne, appreciate it.
What code is needed for this solution?