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 ); } /**