| 开发者 | saqibabbasi |
|---|---|
| 更新时间 | 2026年11月18日 01:40 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
quiz-answers-extender-bulk-import-for-learndash folder to /wp-content/plugins/, or install the plugin from the Plugins > Add New screen.Single Choice questions. Other question types are left untouched.
You choose in LearnDash LMS > Quiz Answers Extender:
The first row must contain these column headers:
question_title, question_text, answer_1, answer_2, answer_3, answer_4, correct_answer, explanation_1, explanation_2, explanation_3, explanation_4
correct_answer is the number (1-4) of the correct answer column.question_title or question_text is required (the other is filled in automatically).Yes. The settings page holds the site defaults. On any quiz's edit screen, the "Answer explanations" box can keep "Use site default" or choose:
There are three chain types: lesson quiz chains (quizzes placed directly in a lesson), topic quiz chains (each topic of a lesson has a quiz) and cross-lesson quiz chains (consecutive lessons that each have a quiz). The "How this chain works" guide under each switch in the settings, and in each lesson's chain box, shows the course structure each type is made for. Turn on "Use quiz chains in lessons" in LearnDash LMS > Quiz Answers Extender, then open a lesson and switch on "Treat this lesson's quizzes as a chain" in its "Quiz chain" box. The chain is every quiz placed directly in the lesson, in course builder order (at least two). Students move forward one quiz at a time. During a round only their current quiz can be opened: earlier and later quizzes are locked (opening them by link, URL or the browser's Back button sends the student to their current quiz), and the Restart button is hidden.
learndash_course_progression_enabled filter, only for the request in which that student opens or submits that quiz; every other page keeps Linear progression.Turn on "Enable Topic-Based Conditional Quiz Progression" in LearnDash LMS > Quiz Answers Extender, then open a lesson and switch on "Treat this lesson's topic quizzes as a chain" in its "Topic quiz chain" box. The chain is every topic of the lesson that contains a quiz, in course builder order (at least two). Each topic's chain quiz is the first quiz placed in that topic. This feature has its own setting and works independently of lesson quiz chains.
learndash_course_progression_enabled filter, only for the request in which that student opens or submits them.
Pass or fail always comes from LearnDash. The lesson is completed once every quiz and topic in it is complete, so quizzes placed directly in the lesson (outside topics) still have to be completed. Topics or lessons with an assignment wait for it as usual. Only logged-in students are affected. Don't limit retakes on chain quizzes, don't set Quiz Prerequisites on them, and avoid essay questions.
Turn on "Enable Cross-Lesson Conditional Quiz Progression" in LearnDash LMS > Quiz Answers Extender, then switch on "Include this lesson in a cross-lesson quiz chain" in the "Cross-lesson quiz chain" box of each lesson that should take part. Consecutive lessons with the switch on (course builder order) form one chain; at least two. Each lesson's chain quiz is the first quiz found in its topics or, when its topics have none, the first quiz placed directly in the lesson. The box shows the chain order.
ldae_cross_progression_lock_following filter can turn this lock off. Under Linear progression the current lesson, its topics and quizzes are opened only for the request in which that student opens or submits them.
Priority: a lesson that uses a lesson quiz chain or a topic quiz chain (with that feature turned on) is never part of a cross-lesson chain and ends the run, so each quiz is handled by one chain type only. The lesson box says when this applies. Topics or lessons with an assignment wait for it as usual. Only logged-in students are affected. Don't limit retakes on chain quizzes, don't set Quiz Prerequisites on them, and avoid essay questions.
No. Users with the manage_options capability (administrators, and super admins on multisite) and LearnDash admin users bypass every quiz chain: no chain quiz is locked for them, they are never redirected, and their own attempts don't move or complete any chain. To see what a student sees, test with a student account. The ldae_progression_bypass_user filter changes who bypasses (return false to test chains as an administrator).
LearnDash's own Linear course progression is separate from this plugin. To let administrators open steps out of order there too, use LearnDash's setting for admin users (LearnDash LMS > Settings > General, "Bypass Course limits" or similar, depending on your LearnDash version).
Yes, separately for each chain type: "Maximum rounds per lesson quiz chain", "Maximum rounds per topic quiz chain" and "Maximum rounds per cross-lesson quiz chain" in the Conditional quiz progression settings. 0 (the default) means unlimited. A round ends when the student fails the last quiz of the chain; the results screen tells them how many rounds they have left.
When a student fails the last quiz of their final round, the chain locks: its quizzes redirect to the lesson (for cross-lesson chains, the first lesson of the chain) with a message asking them to contact their instructor, attempts no longer change anything, and nothing after the chain opens through the chain. To unlock it, open the student's profile, choose an option in the "Reset" dropdown next to the chain in "Quiz chain activity" and update the profile.
"Retake only" (locked chains) opens just the quiz you choose, once. The other quizzes of the chain stay locked. If the student passes it, the chain is passed as usual; if they fail it, the chain locks again straight away and they don't move on to the next quiz.
The "Reset" choices clear the rounds and the lock instead. Choosing the first quiz starts the chain over. Choosing a later quiz lets the student continue from that quiz: it becomes their current quiz, the other quizzes of the chain redirect to it, and it opens even though the earlier ones were not passed. Either way the rounds and the lock are cleared; LearnDash progress is not changed. Passing within the allowed rounds works as before.
Cross-lesson quiz chains: passing also uses a round. After passing, the chain's quizzes can be retaken only while rounds are left (each retake uses one); with 1 round they close as soon as the chain is passed. Resetting a passed chain in the student's profile reopens its quizzes for retakes without a limit. The message shown when retakes are closed can be changed in "Retakes closed message (passed, no rounds left)"; "Locked quiz chain message (all rounds failed)" is used only when a chain locks after failed rounds.
The message students see when a chain locks can be changed in "Locked quiz chain message" in the Conditional quiz progression settings. Use {rounds} for the number of rounds; leave it empty to show the default message.
Per lesson: each chain box on the lesson edit screen ("Quiz chain", "Topic quiz chain", "Cross-lesson quiz chain") has a "Maximum rounds" field. Leave it empty to use the site setting, enter a number to override it for that chain, or 0 for unlimited. A cross-lesson chain uses the value of the first lesson in the chain (course order) that has one. The ldae_chain_max_cycles filter runs last and can change any limit.
Users with the manage_options capability (administrators) by default. Change it with the ldae_import_capability filter.
Yes, with these filters:
ldae_supported_answer_types - answer types that get explanations (default array( 'single' )).ldae_allowed_explanation_html - allowed inline HTML, as a wp_kses() array.ldae_user_can_view_explanations - final decision on who may load the end-of-quiz explanations.ldae_user_can_view_question_explanations - final decision on who may load one question's explanations after "Check".ldae_settings_sections, ldae_settings_fields, ldae_settings_field_types - add sections, settings and setting types to the settings page.ldae_get_setting - override a setting value in code.ldae_quiz_fields - add choices to the per-quiz "Answer explanations" box (settings marked per_quiz get one automatically).ldae_quiz_settings - override the effective settings of a quiz in code.ldae_progression_countdown - seconds before the results screen moves to the next step (default 10; 0 turns the automatic move off).ldae_progression_force_lesson_completion - return false to only complete chain lessons (and topics of topic chains) when LearnDash's own rules (timer, video) allow it.ldae_chain_message - change a results-screen pass or fail message of a quiz chain; receives the message, the chain type ('lesson', 'topic' or 'cross'), the message ('pass', 'pass_partial', 'fail_next' or 'fail_last' on the results screen; 'notice_next', 'notice_retry', 'notice_order', 'notice_blocked' or 'notice_skipped' on pages), the placeholder values and whether the administrator's own message is used.ldae_chain_max_cycles - maximum rounds of a chain; receives the limit from the settings, the chain type ('lesson', 'topic' or 'cross'), the course ID and the lesson ID (the first lesson for cross-lesson chains). 0 = unlimited.ldae_progression_bypass_user - whether a user bypasses every quiz chain (default: administrators and LearnDash admin users).ldae_cross_progression_lock_following - return false to let students open lessons after a cross-lesson chain before passing it (default true).ldae_cross_progression_countdown - seconds before the results screen of a cross-lesson chain quiz moves on by itself (default 0: students click the button).ldae_topic_progression_countdown - seconds before the results screen of a topic chain quiz moves on by itself (default 0: students click the button).ldae_settings_capability - capability required for the settings page (default manage_options).ldae_allow_guest_explanations - whether guests may load explanations for a quiz.ldae_enqueue_frontend - load the frontend assets on custom pages that display a quiz.ldae_builder_root_selectors - CSS selectors of the Quiz Builder container.ldae_import_capability - capability required for the importer.Nothing you set up is lost. Deleting the plugin keeps its settings, each quiz's own choices, lesson, topic and cross-lesson quiz chains, answer explanations and students' chain progress, so deleting and re-installing (for example to update) changes nothing. Only short-lived temporary data is cleared.
To remove everything for good, switch on "Delete all plugin data when the plugin is deleted" under Plugin data in LearnDash LMS > Quiz Answers Extender before deleting the plugin. LearnDash's own quizzes, questions, attempts and scores are never touched. (define( 'LDAE_DELETE_EXPLANATIONS_ON_UNINSTALL', true ); in wp-config.php still removes only the answer explanations.)
Go to Plugins > Add New > Upload Plugin and upload the new zip. WordPress offers "Replace current with uploaded" - choose it. The plugin is replaced in place and nothing runs on removal.
ldae_chain_message filter.ldae_progression_bypass_user.ldae_chain_max_cycles.ldae_cross_progression_lock_following.learndash_previous_step_completed filter.quiz-answers-extender-bulk-import-for-learndash). Features, settings, hooks and stored data are unchanged; explanations saved by earlier versions keep working.