learndash_set_group_enrolled_courses

learndash_set_group_enrolled_courses( int $group_id,  array $group_courses_new = array() )

Sets the list of enrolled courses for a group.


Description #


Parameters #

$group_id

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

$group_courses_new

(array) (Optional) An array of courses to enroll a group.

Default value: array()


Source #

File: includes/ld-groups.php


Changelog #

Changelog
Version Description
2.2.1 Introduced.