Sync::beforeMemberAdded( $groupMemberObject )

Sync before when a member is added to the group

Description

Source

File: bp-integrations/learndash/buddypress/Sync.php

204
205
206
207
208
209
210
211
212
213
214
215
216
217
public function beforeMemberAdded( $groupMemberObject ) {
    if ( ! $generator = $this->groupUserEditCheck( 'user', $groupMemberObject->group_id ) ) {
        return false;
    }
 
    $groupMemberObject = $generator->syncBeforeBpMember( $groupMemberObject );
 
    if ( empty( $groupMemberObject->group_id ) ) {
        add_filter( 'bp_nouveau_ajax_joinleave_group', array( $this, 'bp_ld_sync_error_join_change_message' ), 99, 1 );
    }
 
    return $groupMemberObject;
 
}

Changelog

Changelog
Version Description
BuddyBoss 1.5.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.