learndash_set_course_groups( int $course_id, array $course_groups_new = array() )
Adds a course to the list of the given group IDs.
Description Description
Parameters Parameters
- $course_id
-
(Optional) Course ID. Default 0.
- $course_groups_new
-
(Optional) A list of group IDs to add a course.
Default value: array()
Source Source
File: includes/ld-groups.php