public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/unitfrontend.php
/**
		 * Check if we need to show the previous button.
		 *
		 * @return Boolean True if yes, false otherwise.
		 */
Check if we need to show the previous button.
@return Boolean True if yes, false otherwise.
Check if we need to show the previous button . @return Boolean True if yes false otherwise .
public function check_paging_shouldWeShowPreviousButton() {
			if ( ! $this->unitQuizDetails ) {
				return false;
			}
			$pagingSettings      = maybe_unserialize( $this->unitQuizDetails->quiz_paginate_questions_settings );
			$allowPreviousButton = ( 'on' == WPCW_arrays_getValue( $pagingSettings, 'allow_nav_previous_questions' ) );
			return $allowPreviousButton && ( ! empty( $this->unitQuizProgress ) && $this->unitQuizProgress->quiz_paging_next_q > 0 );
		}
public function check_paging_shouldWeShowPreviousButton ( ) { if ( ! $ this -> unitQuizDetails ) { return false ; } $ pagingSettings = maybe_unserialize ( $ this -> unitQuizDetails -> quiz_paginate_questions_settings ) ; $ allowPreviousButton = ( 'on' == WPCW_arrays_getValue ( $ pagingSettings , 'allow_nav_previous_questions' ) ) ; return $ allowPreviousButton && ( ! empty ( $ this -> unitQuizProgress ) && $ this -> unitQuizProgress -> quiz_paging_next_q > 0 ) ; }
Check if we need to show the previous button.
Check if we need to show the previous button .
// Don't allow previous button to show on the very first question.