learndash_get_course_assignments

learndash_get_course_assignments( int|null $course_id = null,  int|null $user_id = null )

Gets the course assignments.


Description #

Returns WP_query object to get course assignments.


Parameters #

$course_id

(int|null) (Optional) Course ID.

Default value: null

$user_id

(int|null) (Optional) User ID.

Default value: null


Return #

(WP_Query|false) Return WP_Query object if there are assingments in course otherwise false.


Source #

File: themes/ld30/includes/helpers.php