Sync::groupUserEditCheck( $role, $groupId )
Check if the user type need to be synced
Description
Source
File: bp-integrations/learndash/buddypress/Sync.php
protected function groupUserEditCheck($role, $groupId)
{
if (! $this->preCheck()) {
return;
}
$settings = bp_ld_sync('settings');
if (! $settings->get('buddypress.enabled')) {
return false;
}
if ('none' == $settings->get("buddypress.default_{$role}_sync_to")) {
return false;
}
$generator = $this->generator($groupId);
if (! $generator->hasLdGroup()) {
return false;
}
return $generator;
}
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.