LLMS_Question_Choice::is_correct()

Determine if the choice is correct


Return Return

(bool)


Top ↑

Source Source

File: includes/models/model.llms.question.choice.php

	public function is_correct() {
		/**
		 * Filter to modify if this question choice is correct, ie. reorder questions in Advanced Quizzes.
		 *
		 * @since 9.1.0
		 *
		 * @param bool Whether this question choice is correct or not.
		 * @param LLMS_Question_Choice
		 */
		return apply_filters( 'llms_question_choice_is_correct', filter_var( $this->get( 'correct' ), FILTER_VALIDATE_BOOLEAN ), $this );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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