Learndash Certificate Shordcode : LearnDashLMS Version 3.1.1
Certificate Shortcodes
You may use shortcodes to customize the display of your certificates. Provided is a built-in shortcode for displaying user information.
[usermeta]
Example: [usermeta field="display_name"] would display the user's Display Name.
See the full list of available fields here.
[quizinfo]
- SHOW: This parameter determines the information to be shown by the shortcode. Possible values are:
- score
- count
- pass
- timestamp
- points
- total_points
- percentage
- quiz_title
- course_title
- timespent
Example: [quizinfo show="percentage"] shows the percentage score of the user in the quiz. - FORMAT: This can be used to change the timestamp format. Default: "F j, Y, g:i a" shows as March 10, 2001, 5:16 pm.
Example: [quizinfo show="timestamp" format="Y-m-d H:i:s"] will show as 2001-03-10 17:16:18
[courseinfo]
- SHOW: This parameter determines the information to be shown by the shortcode. Possible values are:
- course_title
- course_points
- user_course_points
- completed_on
- cumulative_score
- cumulative_points
- cumulative_total_points
- cumulative_percentage
- cumulative_timespent
- aggregate_percentage
- aggregate_score
- aggregate_points
- aggregate_total_points
- aggregate_timespent
Example: [courseinfo show="cumulative_score"] shows average points scored across all quizzes on the course. - FORMAT: This can be used to change the date format. Default: "F j, Y, g:i a" shows as March 10, 2001, 5:16 pm.
Example: [courseinfo show="completed_on" format="Y-m-d H:i:s"] will show as 2001-03-10 17:16:18
Very useful CERTIFICATE shortcode block for LearnDash LMS
ReplyDeleteLearnDash Certificate Shortcode blocks