LLMS_Student_Quizzes::get_attempt_by_key( string $attempt_key )

Decodes an attempt string and returns the associated attempt


Description Description


Parameters Parameters

$attempt_key

(string) (Required) encoded attempt key


Top ↑

Return Return

(obj|false)


Top ↑

Source Source

File: includes/models/model.llms.student.quizzes.php

	public function get_attempt_by_key( $attempt_key ) {

		$id = $this->parse_attempt_key( $attempt_key );
		if ( ! $id ) {
			return false;
		}
		return $this->get_attempt_by_id( $id );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.9.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: