SyncGenerator::fullSyncToBuddypress()

Run a full users sync up ld group to bp group

Description

Source

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

211
212
213
214
215
216
217
218
219
220
221
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

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.