LLMS_Quiz_Attempt::l10n( string $key )
Translate attempt related strings
Description Description
Parameters Parameters
- $key
-
(string) (Required) key to translate
Return Return
(string)
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 ''; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: