LLMS_Quiz_Attempt_Question::is_correct()

Determine if a question is correct


Return Return

(bool)


Top ↑

Source Source

File: includes/models/model.llms.quiz.attempt.question.php

	public function is_correct() {

		if ( 'graded' === $this->get_status() ) {
			return llms_parse_bool( $this->get( 'correct' ) );
		}

		return false;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.16.8 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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