learndash_get_user_quiz_attempts( int $user_id, int $quiz_id )
Gets the user quiz attempts activity.
Description #
Parameters #
- $user_id
-
(int) (Optional) The ID of the user to get quiz attempts. Default 0.
- $quiz_id
-
(int) (Optional) The ID of the quiz to get attempts. Default 0.
Return #
(array|void) An array of quiz attempt activity IDs.
Source #
File: includes/ld-reports.php
Changelog #
Version | Description |
---|---|
2.3.0 | Introduced. |