Browse: Home / Functions /

learndash_get_user_course_attempts_time_spent

learndash_get_user_course_attempts_time_spent( int $user_id,  int $course_id )

Gets the time spent by user in the course.


Description #

Total of each started/complete time set.


Parameters #

$user_id

(int) (Optional) The ID of the user to get course time spent. Default 0.

$course_id

(int) (Optional) The ID of the course to get time spent. Default 0.


Return #

(int) Total number of seconds spent.


Source #

File: includes/ld-reports.php


Changelog #

Changelog
Version Description
2.3.0 Introduced.