SyncGenerator::syncBpMod( $userId, $remove = false, $clearCache = true )
Sync a bp mod to ld
Description
Source
File: bp-integrations/learndash/library/SyncGenerator.php
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
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.