LDLMS_Model_User_Quiz_Progress
Class for LearnDash LDLMS_Model_User_Quiz_Progress.
Description Description
Source Source
File: includes/classes/class-ldlms-model-user-quiz-progress.php
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
Methods Methods
- __construct — Public constructor for class.
- build_quiz_progress
- get_progress — Get User Quiz Progress by progress type.
- has_completed_step — Check if user has completed/passed a specific Quiz.
- initialize — Initialize the User class vars.
- load_progress — Load Legacy User Progress from User Meta.
- load_quiz_progress — Build User Quiz Progress nodes.
- set_progress — Set Progress steps.
- set_progress_unloaded — Sets the Progress loaded flag to false and clears all data structures. Thisand will force the progress to be reloaded from meta.
- updated_user_meta_progress — Hook into the user meta update logic from WordPress so we know if external processes are updating the user meta value. If so we set the dirty flag to force a reload of the meta and rebuild the data structure.