SyncGenerator::syncLdUsers()

Sync the ld students to bp

Description

Source

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

315
316
317
318
319
320
321
322
323
324
325
326
public function syncLdUsers()
{
    $this->syncingToBuddypress(function() {
        $userIds = learndash_get_groups_user_ids($this->ldGroupId);
 
        foreach ($userIds as $userId) {
            $this->syncLdUser($userId);
        }
    });
 
    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.