learndash_get_user_course_attempts( int $user_id, int $course_id )
Gets the user course attempts activity.
Description Description
Parameters Parameters
- $user_id
-
(Optional) The ID of the user to get course attempts. Default 0.
- $course_id
-
(Optional) The ID of the course to get attempts. Default 0.
Return Return
(array|void) An array of activity IDs and timestamps or quizzes found.
Source Source
File: includes/ld-reports.php
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |