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 assignments in course otherwise false.
Source #
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |