LLMS_Quiz_Attempt::l10n( string $key )

Translate attempt related strings


Description Description


Parameters Parameters

$key

(string) (Required) key to translate


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/models/model.llms.quiz.attempt.php

	public function l10n( $key ) {

		switch ( $key ) {

			case 'passed': // deprecated
			case 'status':
				$statuses = llms_get_quiz_attempt_statuses();
				return $statuses[ $this->get( 'status' ) ];
			break;

		}

		return '';

	}

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: