SyncGenerator::syncBpUsers()

Sync the bp members to ld

Description

Source

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

269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
public function syncBpUsers()
{
    $this->syncingToLearndash(function() {
        $members = groups_get_group_members([
            'group_id' => $this->bpGroupId
        ]);
 
        $members = $members['members'];
 
        foreach ($members as $member) {
            $this->syncBpMember($member->ID, false, false);
        }
    });
 
    $this->clearLdGroupCache();
 
    return $this;
}

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.