Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disallow ordinary users to create groups


  • 5224719
    Inactive

    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

    @glittereyes

    I agree. This feature is so much needed.


    Andy Peatling
    Keymaster

    @apeatling

    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

    @glittereyes

    Hi,

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


    Brajesh Singh
    Participant

    @sbrajesh

    @glittereyes

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


    Jean-Pierre Michaud
    Participant

    @nexia

    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

    @glittereyes

    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