public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/unitfrontend.php
/**
		 * Check if we have an active timer.
		 */
Check if we have an active timer.
Check if we have an active timer .
public function check_timers_doWeHaveTimerDataForThisQuiz() {
			if ( ! empty( $this->unitQuizDetails ) &&
			     'use_timer' == $this->unitQuizDetails->quiz_timer_mode &&
			     ! empty( $this->unitQuizProgress ) &&
			     'retake_waiting' != $this->unitQuizProgress->quiz_next_step_type &&
			     '0000-00-00 00:00:00' != $this->unitQuizProgress->quiz_started_date ) {
				return true;
			}
			return false;
		}
public function check_timers_doWeHaveTimerDataForThisQuiz ( ) { if ( ! empty ( $ this -> unitQuizDetails ) && 'use_timer' == $ this -> unitQuizDetails -> quiz_timer_mode && ! empty ( $ this -> unitQuizProgress ) && 'retake_waiting' != $ this -> unitQuizProgress -> quiz_next_step_type && '0000-00-00 00:00:00' != $ this -> unitQuizProgress -> quiz_started_date ) { return true ; } return false ; }
Check if we have an active timer.
Check if we have an active timer .
// See if we have quiz details, and we're in timer mode, and that we have a valid quiz start time. // We need progress, and a retake has been started, and the start date is valid