LLMS_Admin_Table::has_resumable_attempts()

Check if any quiz has resumable attempts.


Return Return

(bool)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.admin.table.php

	public function has_resumable_attempts() {
		if ( 'quizzes' === llms_filter_input( INPUT_GET, 'tab' ) && 'attempts' === llms_filter_input( INPUT_GET, 'stab' ) ) {
			$admin_quiz_attempts = new LLMS_Controller_Admin_Quiz_Attempts();
			$quizzes             = $admin_quiz_attempts->get_resumable_attempts( $this->quiz_id );
			return ! empty( $quizzes );
		}
		return false;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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