Thanks for that link!
However i seen it and the code is pretty old – over 5 years.
So I’m looking for if there is better more updated/current code.
Also what i forgot to say was that if applicable then completely disable hidden groups for users, but for admin/super admin maybe allow it for use of internal staffing purposes. There could be a benefit in that configuration for administrative company tasks.
I’d say if you’re worried about people creating groups (which is a reasonable thing to worry about), your safest bet is to uncheck the checkbox “Enable group creation for all users” (or something like that) at wp-admin > settings > buddypress , and restrict group creation to site admins only. Then, add a group request form or similar, and you can either create the group or not.
Thanks @dcavins for your advise, but that is not a option for us a we run a new public service so it is open for anyone to join and create.
However we have found a solution which is editing the admin.php and removing the code part that displays this option in the groups settings.
I will stop probably 99% of all users and left is only very advanced users that would craft such URL I guess?
On a sidenote:
I think it would be good if you guys that are part of the BuddyPress Team would consider adding an option in BP back-end setting to be able to enable/disable groups types eg. hidden groups and maybe private to give people more control? Well at least hidden groups.
I have tried to remove from admin.php and create.php the code part that displays this option too. But it does nothing..
Can you please tell me please where did you put the new modified files admin.php ?
I use a child-theme
Thank you very much!
I 100% second this.
I want to disallow ‘Public’ groups from being made.
I have removed the code in the create.php file, updated other words from “Group” to “Project” like “Project Privacy Options” for the title of the second section but nothing changes.
I have combed every file I could find and cannot find where the “Privacy Options” screen content is populating from including both template types.
Any help would be great. This seems like an extremely useful addition.
Guys @ I’ll try to post a solution when I find time for it. I do have the code for it. It’s a bit old but should still work.
You need to tweak the code for both create.php and group-settings.php @skyb
I try to post details more when I have time.