Sync::onGroupDeleted( $groupId )
Desync when group is deleted
Description
Source
File: bp-integrations/learndash/buddypress/Sync.php
public function onGroupDeleted($groupId) { if (! $this->enabled()) { return false; } if (! $ldGroupId = $this->deletingSyncedLdGroupId) { return; } $this->deletingSyncedLdGroupId = null; if (! bp_ld_sync('settings')->get('buddypress.delete_ld_on_delete')) { $this->generator(null, $ldGroupId)->desyncFromBuddypress(); return; } $this->generator()->deleteLdGroup($ldGroupId); }
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.