Hooks::check_user_can_join_if_ld_sync( $groupMemberObject )

Sub action before save when a member is added to bp group, based on type

Description

Source

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

	public function check_user_can_join_if_ld_sync( $groupMemberObject ) {

		if ( $groupMemberObject->is_banned ) {
			return do_action( 'bp_ld_sync/bb_ld_before_group_member_banned', $groupMemberObject );
		}

		if ( $groupMemberObject->is_admin ) {
			return do_action( 'bp_ld_sync/bb_ld_before_group_admin_added', $groupMemberObject );
		}

		if ( $groupMemberObject->is_mod ) {
			return do_action( 'bp_ld_sync/bb_ld_before_group_mod_added', $groupMemberObject );
		}

		return do_action( 'bp_ld_sync/bb_ld_before_group_member_added', $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.