SyncGenerator::fullSyncToBuddypress()
Run a full users sync up ld group to bp group
Description
Source
File: bp-integrations/learndash/library/SyncGenerator.php
public function fullSyncToBuddypress()
{
$lastSynced = groups_get_groupmeta($this->ldGroupId, '_last_sync', true) ?: 0;
if ($lastSynced > $this->getLastSyncTimestamp('ld')) {
return;
}
$this->syncLdAdmins()->syncLdUsers();
update_post_meta($this->ldGroupId, '_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.