Quiz::attempt_view( $template,  $post_type )

View attempt detail


Description

This page will see by student, when any student click to view attempt from the previous attempt list.


Parameters

$template

(Required)

$post_type

(Required)


Return

(mixed)


Source

File: classes/Quiz.php

	public function attempt_view( $template, $post_type ) {

		if ( $template === 'single/quiz/content' ) {
			$attempt_id = (int) dozent_input_text( 'view_attempt_id' );
			if ( $attempt_id ) {
				return "single/quiz/attempt_view";
			}
		}

		return $template;
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.