LLMS_Admin_Table::has_resumable_attempts()
Check if any quiz has resumable attempts.
Return Return
(bool)
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;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.8.0 | Introduced. |