LLMS_Quiz_Legacy::get_question_key( int $question_id )

Get question key


Description Description


Parameters Parameters

$question_id

(int) (Required) [ID of question]


Top ↑

Return Return

(key) [key of question in questions array]


Top ↑

Source Source

File: includes/class.llms.quiz.legacy.php

	public function get_question_key( $question_id ) {
		foreach ( $this->get_questions() as $key => $value ) {
			if ( $key == $question_id ) {
				$question_key = $key;
			}
		}
		return $question_key;
	}


Top ↑

User Contributed Notes User Contributed Notes

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