Hooks::checkLearndashGroupDeleteMeta( $metaId, $userId, $metaKey, $metaValue )
Sub actions when admin or user is removed from ld group
Description
Source
File: bp-integrations/learndash/learndash/Hooks.php
public function checkLearndashGroupDeleteMeta($metaId, $userId, $metaKey, $metaValue)
{
if ($this->isLearndashLeaderMeta($metaKey)) {
$groupId = $this->getLeardashMetaGroupId($metaKey);
return do_action('bp_ld_sync/learndash_group_admin_removed', $groupId, $userId);
}
if ($this->isLearndashUserMeta($metaKey)) {
$groupId = $this->getLeardashMetaGroupId($metaKey);
return do_action('bp_ld_sync/learndash_group_user_removed', $groupId, $userId);
}
}
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.