SyncGenerator::fullSyncToLearndash()
Run a full users sync up bp group to ld group
Description
Source
File: bp-integrations/learndash/library/SyncGenerator.php
public function fullSyncToLearndash() { $lastSynced = groups_get_groupmeta($this->bpGroupId, '_last_sync', true) ?: 0; if ($lastSynced > $this->getLastSyncTimestamp('bp')) { return; } $this->syncBpUsers()->syncBpMods()->syncBpAdmins(); groups_update_groupmeta($this->bpGroupId, '_last_sync', time()); }
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.