learndash_get_user_course_attempts_time_spent( int $user_id, int $course_id )
Gets the time spent by user in the course.
Description Description
Total of each started/complete time set.
Parameters Parameters
- $user_id
-
(Optional) The ID of the user to get course time spent. Default 0.
- $course_id
-
(Optional) The ID of the course to get time spent. Default 0.
Return Return
(int) Total number of seconds spent.
Source Source
File: includes/ld-reports.php
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |