Ajax::setRequestGroups()
Setup the current bp and ld groups on ajax request
Description
Source
File: bp-integrations/learndash/buddypress/Ajax.php
protected function setRequestGroups() { if (! $groupId = bp_ld_sync()->getRequest('group')) { return; } $bpGroup = groups_get_group($groupId); if (! $bpGroup->id) { return; } $this->bpGroup = $bpGroup; $this->ldGroup = get_post(bp_ld_sync('buddypress')->helpers->getLearndashGroupId($groupId)); }
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.