Browse: Home / Functions /

learndash_get_user_course_attempts

learndash_get_user_course_attempts( int $user_id,  int $course_id )

Gets the user course attempts activity.


Description #


Parameters #

$user_id

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

$course_id

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


Return #

(array|void) An array of activity IDs and timestamps or quizzes found.


Source #

File: includes/ld-reports.php


Changelog #

Changelog
Version Description
2.3.0 Introduced.