BuddyDev

Limiting Group Invite Request to group Admins Only

A couple of days ago, Phillip asked me this question. He wanted to limit the group invites to group admins only. The goal was to stop the group members other than the group admin to send the invitation request for the group.

I thought this might be useful for some of you, so here I am sharing it.

It is a simple tutorial and will take just 5 minutes.

Goals:-

  • Allow only the Group Admin to send the invitation request for group
  • Stop normal group members from Sending the invitation request

So, the simple way to accomplish this was to hide the send invites tab on individual group.

You can even modify this code to allow group admins/group moderators by changing this line

to

 

Here is a screenshot of what a normal member sees:-

The code should go to the bp-custom.php

Hope that it helps some of you 🙂

Please do let me know if you use it, whether it works for you or not?

Comments are closed.