learndash_get_course_assignments( int|null $course_id = null, int|null $user_id = null )
Gets the course assignments.
Description Description
Returns WP_query
object to get course assignments.
Parameters Parameters
- $course_id
-
(Optional) Course ID.
Default value: null
- $user_id
-
(Optional) User ID.
Default value: null
Return Return
(WP_Query|false) Return WP_Query
object if there are assignments in course otherwise false.
Source Source
File: themes/ld30/includes/helpers.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |