WpProQuiz_Helper_QuestionOrder
LearnDash ProQuiz Helper Question Order Class.
Description #
Source #
File: includes/lib/wp-pro-quiz/lib/helper/WpProQuiz_Helper_QuestionOrder.php
Changelog #
| Version | Description |
|---|---|
| 5.1.6 | Introduced. |
Methods #
- backfill_to_count — Tops up an ordered question set to a target count by appending unused questions from the pool, preserving the existing order.
- get_resume_question_set — Builds the question set to resume an attempt with: the saved order restored, then topped up to the target count with other valid questions.
- order_by_saved_pro_ids — Reorders a set of questions to match a saved list of question pro IDs (the resume "randomOrder"), skipping any saved ID that no longer resolves to a question in the set.
- question_key — Returns the de-duplication key for a question, namespaced by ID space so a question's post ID and another question's pro ID (legacy data path, post ID 0) can never collide.