The Uncanny Continuing Education Credits plugin wouldn’t be of much use without shortcodes/blocks! With them, we make it easy for learners to see lots of data in the front end—how many credits a course is worth, how many credits the learner has earned for that course, how many total credits have been earned and how many total credits have been earned since the rollover date (if applicable).
These shortcodes/blocks do work in certificates too, but in most cases that’s of limited value since the best practice is to have one certificate per course and the value could then be easily hardcoded.
Here’s a list of shortcodes and blocks and how to use them:
Available Course Credits
Block Name: Available Credits
This shortcode displays the number of credits available for the course (as set in the Edit page for that course). The course-id attribute is optional and is used to associated the shortcode with a particular course. If the shortcode is used on a course page, no ID is required. On other pages it should be added. If you are using blocks, the optional Course ID will appear in the block side menu, under Available Credits Settings.
Earned Course Credits
[uo_ceu_earned course-id="id" since_rollover="yes"]
Block Name: Earned Credits
This shortcode shows the number of credits earned by the learner for the associated course. Once again, course-id is optional and not required on a course page. If the user has not earned any credits for the course, the system will display a value of 0. If since_rollover is set to yes, it shows the number of credits earned since the rollover date. If credits were earned before the date, a value of 0 is shown. If you are using blocks, the options Course ID and Since Rollover will appear in the block side menu, under Earned Credits Settings.
Total Credits Earned
Block Name: Total Credits
This shortcode shows the total number of credits (regardless of rollover date) for the associated user. If the user_id attribute is not included, the value is shown for the current user. If you are using blocks, the option User ID will appear in the block side menu, under Total Credits Settings.
Total Credits Earned since Rollover Date
Block Name: Total Rollover Credits
This shortcode is much like the total one except that it only sums credits earned on or after the rollover date. If you are using blocks, the options User ID and On or After Rollover will appear in the block side menu.