SyncGenerator::syncBpAdmin( $userId, $remove = false, $clearCache = true )
Sync a bp admin to ld
Description
Source
File: bp-integrations/learndash/library/SyncGenerator.php
public function syncBpAdmin($userId, $remove = false, $clearCache = true) { $this->syncingToLearndash(function() use ($userId, $remove) { call_user_func_array($this->getBpSyncFunction('admin'), [$userId, $this->ldGroupId, $remove]); $this->maybeRemoveAsLdUser('admin', $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.