Courses::getGroupCourses()

Returns the courses belongs to the group

Description

Source

File: bp-integrations/learndash/buddypress/Courses.php

	public function getGroupCourses() {
		$group_id  = bp_ld_sync( 'buddypress' )->helpers->getLearndashGroupId( groups_get_current_group()->id );
		$courseIds = learndash_group_enrolled_courses( $group_id );

		/**
		 * Filter to update course lists
		 */
		return array_map( 'get_post', apply_filters( 'bp_ld_learndash_group_enrolled_courses', $courseIds, $group_id ) );
	}

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.