Browse: Home / Functions /

learndash_get_course_groups

learndash_get_course_groups( int $course_id,  boolean $bypass_transient = false )

Gets the list of groups associated with the course.


Description #


Parameters #

$course_id

(int) (Optional) Course ID. Default 0.

$bypass_transient

(boolean) (Optional) Whether to bypass transient cache or not.

Default value: false


Return #

(array) An array of group IDs associated with the course.


Source #

File: includes/ld-groups.php


Changelog #

Changelog
Version Description
2.2.1 Introduced.