bp_learndash_get_group_courses( $bpGroupId )

Return array of LearnDash group courses.

Description

Source

File: bp-integrations/learndash/bp-learndash-functions.php

function bp_learndash_get_group_courses($bpGroupId) {
	$generator = bp_ld_sync('buddypress')->sync->generator($bpGroupId);

	if (! $generator->hasLdGroup()) {
		return [];
	}

	return learndash_group_enrolled_courses($generator->getLdGroupId());
}

Changelog

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.