SyncGenerator::syncLdAdmin( $userId,  $remove = false )

Sync a ld admin to bp

Description

Source

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

430
431
432
433
434
435
436
437
public function syncLdAdmin($userId, $remove = false)
{
    $this->syncingToBuddypress(function() use ($userId, $remove) {
        $this->addUserToBpGroup($userId, 'admin', $remove);
    });
 
    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.