From 2f486f4ccd78bb8ccc2eb484b584d004b1503299 Mon Sep 17 00:00:00 2001 From: Anindra Das Bivas Date: Wed, 2 Dec 2026 15:59:12 +0600 Subject: [PATCH] Update: Added hook to filter out attempts answers that should not be skipped --- models/QuizModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/QuizModel.php b/models/QuizModel.php index fd88311e02..0f9e420ff3 100644 --- a/models/QuizModel.php +++ b/models/QuizModel.php @@ -1106,7 +1106,7 @@ static function ( string $item ) { return empty( $given_answer ); } - return '' === trim( wp_strip_all_tags( (string) $given_answer ) ); + return apply_filters( 'tutor_is_attempt_answer_skipped', '' === trim( wp_strip_all_tags( (string) $given_answer ) ), $attempt_answer ); } /**