Sync::beforeMemberAdded( $groupMemberObject )
Sync before when a member is added to the group
Description
Source
File: bp-integrations/learndash/buddypress/Sync.php
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
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.