SyncGenerator::syncBpAdmin( $userId, $remove = false, $clearCache = true )
Sync a bp admin to ld
Description
Source
File: bp-integrations/learndash/library/SyncGenerator.php
334 335 336 337 338 339 340 341 342 343 344 345 346 | public function syncBpAdmin( $userId , $remove = false, $clearCache = true) { $this ->syncingToLearndash( function () use ( $userId , $remove ) { call_user_func_array( $this ->getBpSyncFunction( 'admin' ), [ $userId , $this ->ldGroupId, $remove ]); $this ->maybeRemoveAsLdUser( 'admin' , $userId ); }); if ( $clearCache ) { $this ->clearLdGroupCache(); } return $this ; } |
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.