Skip to:

Disable joining top-level groups

  • I read through this forum, and these questions might have been slightly answered already, but I am still pretty confused. I am kind of new to this. Anyway, would it be possible to disable the joining of only top-level groups, and hide the members tab in them, essentially just using them as categories for other (lower level in the hierarchy) groups?
    I also have an events plugin (Events Manager) that creates a tab under each group, and it would be helpful to be able to remove that tab as well from top-level groups.
    Basically, I just want to keep the activity (Home) tab and the Member Groups tab for top-level groups only.
    That might be a lot to ask to explain, but a little direction at least would be much appreciated. Thank you!

Viewing 1 replies (of 1 total)

  • David Dean


    You can set the top-level groups as private, and if they have public members, users will be able to “traverse” them to get to their members.

    The other modifications you’ve mentioned could take advantage of the `bp_group_hierarchy_has_parent()` function to suppress those other tabs. It will return `0` (zero) for top-level groups, or a group ID for child groups.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable joining top-level groups’ is closed to new replies.
Skip to toolbar