learndash_update_quiz_statistics( int $quiz_id, int $question_id, array $updated_quiz_data, WP_Post $essay, array $users_quiz_data )

Updates the quiz statistics for the given quiz attempt.


Description Description

Updates the score when the essay grading is adjusted, I ran this through manual SQL queries because WpProQuiz doesn’t offer an elegant way to grab a particular question and update it.


Parameters Parameters

$quiz_id

(Required) Quiz ID.

$question_id

(Required) Question ID.

$updated_quiz_data

(Required) Updated quiz statistics data.

$essay

(Required) The WP_Post essay object.

$users_quiz_data

(Required) User quiz data.


Top ↑

Source Source

File: includes/quiz/ld-quiz-essays.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.