Helpers::hasLearndashGroup( $groupId = null )
Determine whether a group has connected ld group
Description
Source
File: bp-integrations/learndash/buddypress/Helpers.php
public function hasLearndashGroup($groupId = null) { if (! $groupId) { return false; } if (! $ldGroupId = $this->getLearndashGroupId($groupId)) { return false; } if ('publish' !== get_post_status($ldGroupId)) { return false; } return true; }
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.