Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Disable group invite notifications


Burt Adsit
Participant

@burtadsit

maxaud, the function that does the work in bp is groups_send_invites() and it lives in bp-groups.php, line 1642.

function groups_send_invites( $group_obj ) {

global $bp;

This function serves both the group creation ‘send invites’ and the member theme ‘send invites’ in the group screen.

I’d put a return; statement right under that global $bp; statement. Users can flip all the switches they want but nothing will actually happen. The users will still see the capability but nothing will work.

Lemme test this to make sure…

No notification emails are actually sent. The screen says it did but it didn’t. The notification message “Group invites sent” isn’t part of that function you will be bypassing.

Skip to toolbar