Re: Disable group invite notifications
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.