SyncGenerator::syncBpMod( $userId,  $remove = false,  $clearCache = true )

Sync a bp mod to ld

Description

Source

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

354
355
356
357
358
359
360
361
362
363
364
365
366
public function syncBpMod($userId, $remove = false, $clearCache = true)
{
    $this->syncingToLearndash(function() use ($userId, $remove) {
        call_user_func_array($this->getBpSyncFunction('mod'), [$userId, $this->ldGroupId, $remove]);
        $this->maybeRemoveAsLdUser('mod', $userId);
    });
 
    if ($clearCache) {
        $this->clearLdGroupCache();
    }
 
    return $this;
}

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.