mbr_lms_show_quiz_attempts_counter
Usage
This shortcode returns the lesson completion area for a lesson.
Parameters
Parameters | Description |
---|---|
quiz_id | The quiz ID for which the amount of attempts should be displayed. Default: none. Required: yes |
lesson_id | The related lesson ID for the quiz. Default: none. Required: yes. No, if the shortcode is placed on the lesson for which the attempts should be displayed. |
Validity
This shortcode is only evaluated for logged in users.
Conditional Branching
This shortcode does NOT support conditional branching with [ELSE_contact].
Nesting
Shortcode nesting is NOT supported.
Examples
- Example 1
- Example 2
Display the quiz attempts counter if the shortcode is placed on a the lesson for which the quiz' attempts should be displayed:
[mbr_lms_show_quiz_attempts_counter quiz_id='123']
Display the quiz attempts counter if the shortcode is not placed on the lesson for which the quiz' attempts should be displayed:
[mbr_lms_show_quiz_attempts_counter quiz_id='123' lesson_id='456']