Sync::onGroupDeleted( $groupId )
Desync when group is deleted
Description
Source
File: bp-integrations/learndash/learndash/Sync.php
public function onGroupDeleted($groupId)
{
if (! $bpGroupId = $this->deletingSyncedBpGroupId) {
return;
}
$this->deletingSyncedBpGroupId = null;
if (! bp_ld_sync('settings')->get('learndash.delete_bp_on_delete')) {
$this->generator($bpGroupId)->desyncFromLearndash();
return;
}
$this->generator()->deleteBpGroup($bpGroupId);
}
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.