Skip to:
Content
Pages
Categories
Search
Top
Bottom

Only admin can create a group!

  • Avatar of Eelambuddy
    eelambuddy
    Participant

    @eelambuddy

    How can I hide the “group create” option from a user? I only want the admin to create a group.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of lokers
    lokers
    Participant

    @lokers

    any luck with this? I am looking for this too…

    Avatar of newbie999
    newbie999
    Participant

    @newbie999

    I’m looking for this functionality as well. Can anyone help? Please.

    Avatar of John James Jacoby
    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Easiest way would be to use the WPMU function is_site_admin() to determine if the currently logged in user is a site admin, and then hide the buttons accordingly in your template.

    Then, you can create a custom function in plugins/bp-custom.php to redirect a user if they try to access the group creation URL directly.

    Avatar of newbie999
    newbie999
    Participant

    @newbie999

    Thank you for the response! I’m a total newbie at buddypress/wordpress mu/bbpress. Would you be able to provide some additional details as to how I can accomplish the 2 suggestions you provided, so I can head in the right direction? I’m not quite sure where to start. I’m using the bphome/bpmember themes.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.