SyncGenerator::maybeRemoveAsLdUser( $type,  $userId )

Maybe remove ld user if user is promote or demote from bp

Description

Source

File: bp-integrations/learndash/library/SyncGenerator.php

	protected function maybeRemoveAsLdUser($type, $userId)
	{
		if ('user' == $this->getBpSyncToRole($type)) {
			return;
		}

		// remove them as user, cause they are leader now
		ld_update_group_access($userId, $this->ldGroupId, true);
	}

Changelog

Changelog
Version Description
BuddyBoss 1.0.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.