learndash_get_user_quiz_attempts_time_spent( int $user_id, int $quiz_id )

Gets the time spent by user on the quiz.


Description Description

Total of each started/complete time set.


Parameters Parameters

$user_id

(Required) The ID of the user to get quiz time spent.

$quiz_id

(Required) The ID of the quiz to get time spent.


Top ↑

Return Return

(int) The total number of seconds spent on a quiz.


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.