Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to give group creators no option to create public or hidden groups. All groups should be private.

So that people still can see those groups but have to be invited or request a membership.

The most simple method would be to hide the radio buttons(see pic attached). But I want to do it using a plugin or php.

So, how can I force buddypress to make each group private?

share|improve this question

put on hold as off-topic by kaiser yesterday

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

    
You would need to look into buddypress hooks. However if all you need is to hide the radio button, it would be way easier to achieve this with css or jquery. With css you could hide the unwanted button and with jquery you could mark the other as selected by default. –  gdaniel Mar 3 at 4:42

1 Answer 1

up vote -1 down vote accepted

In your theme or child theme, create an over-ride of this file: buddypress\bp-templates\bp-legacy\buddypress\groups\create.php

Then adjust the form markup so that only the Private group radio button is created and it is checked.

Creating theme over-rides: http://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/#overloading-template-compatibility-theme-files

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.