Table Of Contents

Action: group invitation sent

Table Of Contents
Hook
peepso_action_group_user_invitation_send

 

Plugin PeepSo Groups
Since 1.7.4
Status Active
Args
PeepSoGroupUser

Description #

Fires after a group invitation is sent, passes the PeepSoGroupUser object

Examples #

1 2 3 4 5
// log details of sent group invitation
add_action('peepso_action_group_user_invitation_send', function(PeepSoGroupUser $PeepSoGroupUser) {
    $msg = 'User ' . get_current_user_id() . ' invited user {$PeepSoGroupUser->$user_id} to group {$PeepSoGroupUser->$group_id}';
    error_log($msg);    error_log($msg);
}, 10, 1);

What are your feelings
Updated on Sep 22, 2023