learndash_set_course_groups

learndash_set_course_groups( int $course_id,  array $course_groups_new = array() )

Adds a course to the list of the given group IDs.


Description #


Parameters #

$course_id

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

$course_groups_new

(array) (Optional) A list of group IDs to add a course.

Default value: array()


Source #

File: includes/ld-groups.php