Helpers::hasLearndashGroup( $groupId = null )
Determine whether a group has connected ld group
Description
Source
File: bp-integrations/learndash/buddypress/Helpers.php
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 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.