Skip to:

[Resolved] Preventing group members from inviting others?

  • I will be using Buddypress to create courses. Each group will be a course. These will be set to private, but I read in the Codex “In a private group or a hidden group, members have all the same privileges as members in a public group. Additionally, being a member of a private group means that you get to see who else is a member of the group, and that you’re able to send invites to other users.”
    How can I set it so that members of the group cannot invite other users?

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

  • Boone Gorges


    If you don’t want anyone in any group to be able to send invites, put the following in your bp-custom.php file:

    function bbg_no_send_invites( $can_send_invites ) {
    $can_send_invites = false;
    return $can_send_invites;
    add_filter( 'bp_groups_user_can_send_invites', 'bbg_no_send_invites' );

    If you want to be more selective than that – for instance, allowing only group admins to invite, or blocking invites only in private groups – you’ll need to put some more logic in there before setting $can_send_invites to false.

    Thank you!

    Um, ok, I thanked too soon. ;-) Is the bp-custom.php file something I have to create? I could not find one in my installation.

    Ah, never mind. I found in in the Codex.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Preventing group members from inviting others?’ is closed to new replies.
Skip to toolbar