Skip to content

Commit

Permalink
Merge pull request #2476 from QuizandSurveyMaster/CU-86cun7z4q-retake…
Browse files Browse the repository at this point in the history
…-quiz-feature

Added two hooks for quz retake with wrong answer feature
  • Loading branch information
zubairraeen authored Feb 29, 2024
2 parents 0c6b78c + d008a0d commit f3d161b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions php/classes/class-qmn-quiz-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1804,6 +1804,7 @@ public function submit_results( $qmn_quiz_options, $qmn_array_for_variables ) {
$results_array['total_attempted_questions'] = $qmn_array_for_variables['total_attempted_questions'];
$results_array['minimum_possible_points'] = $qmn_array_for_variables['minimum_possible_points'];
$results_array['quiz_start_date'] = $qmn_array_for_variables['quiz_start_date'];
$qmn_array_for_variables = apply_filters( 'qsm_array_for_variables_before_db_query', $qmn_array_for_variables );
// If the store responses in database option is set to Yes.
if ( 1 === intval( $qmn_quiz_options->store_responses ) ) {
// Inserts the responses in the database.
Expand Down Expand Up @@ -1894,6 +1895,7 @@ public function submit_results( $qmn_quiz_options, $qmn_array_for_variables ) {
$qmn_array_for_variables['result_id'] = $results_id;
$qmn_array_for_variables['result_unique_id'] = $unique_id;
setcookie("question_ids_".$qmn_array_for_variables['quiz_id'], "", time() - 36000, "/");
$qmn_array_for_variables = apply_filters( 'qsm_array_for_variables_after_db_query', $qmn_array_for_variables, $qmn_quiz_options );
// Converts date to the preferred format
$qmn_array_for_variables = $mlwQuizMasterNext->pluginHelper->convert_to_preferred_date_format( $qmn_array_for_variables );

Expand Down

0 comments on commit f3d161b

Please sign in to comment.