Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disallow ordinary users to create groups

  • How can I disallow ordinary users to create a group?

    I’d like that only the admins or moderators are able to create a group. The reason is that I want to define for each category in the forum a standard group. Like this I can avoid spam groups and spam forums or categories.

Viewing 6 replies - 1 through 6 (of 6 total)
  • @glittereyes

    Participant

    I agree. This feature is so much needed.

    @apeatling

    Keymaster

    This might work, but it won’t be pretty:

    if ( !is_site_admin() )
    remove_action( 'wp', 'groups_screen_create_group', 3 );

    In bp-custom.php.

    @glittereyes

    Participant

    Hi,

    I couldn’t find bp-custom.php. Is this something that I have to create?

    @sbrajesh

    Participant

    @glittereyes

    Yes, you should create bp-custom.php file inside the wp-content/plugins directory and put your custom functions there.

    @nexia

    Participant

    just as a detail for Andy’s suggestion, is that kind of “remove_action” thing work for plugins loaded after bp-custom.php is loaded?

    *(because i want to deactivate some actions from plugins where these actions are unneeded)

    @glittereyes

    Participant

    I tried that and it broke some parts of my site :( I wonder if I could just paste that code to a specific file.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Disallow ordinary users to create groups’ is closed to new replies.
Skip to toolbar