Ajax::setRequestGroups()
Setup the current bp and ld groups on ajax request
Description
Source
File: bp-integrations/learndash/buddypress/Ajax.php
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | 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.