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.


Top ↑

Return Return

(int) Total number of seconds spent.


Top ↑

Source Source

File: includes/ld-reports.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.