Course Progress Shortcode

The 

You need to be logged in to see your course progress.
 shortcode creates a summary table of all courses that a user is signed up to, along with their progress for each course, and their grade so far. To be able to see their progress, a user needs to be logged in. If the user is not logged in, then a message saying that the user needs to be logged in will be shown.

Here’s a summary of the shortcode parameters for 

You need to be logged in to see your course progress.
:

Parameters:

courses
(Optional) A comma-separated list of course IDs to show in the progress. If this is not specified, then all courses that the user is signed up to will be shown.
course_desc
(Optional) If true, then show the course description. (It can be true or false. By default, it’s false).
course_prerequisites
(Optional) If true, then show a table of the course prerequisites. (It can be true or false. By default, it’s false).
user_progress
(Optional) If true, then show a progress bar of the user’s current progress for each course they are signed up to. (It can be true or false. By default, it’s true).
user_grade
(Optional) If true, then show the user’s average grade so far for each course they are signed up to. (It can be true or false. By default, it’s true).
user_quiz_grade
(Optional) If true, show quiz grade for unit if unit conatins quiz. (It can be true or false. By default, it’s false).
certificate
(Optional) If true, show certificate button if certificates are enabled and course is complete. (It can be true or false. By default, it’s false).

Here are some examples of how 
You need to be logged in to see your course progress.
 shortcode works:

Example 1: 
You need to be logged in to see your course progress.
Shows all courses a user is signed up to, along with their progress and cumulative grade so far for each course.
Example 2: 
You need to be logged in to see your course progress.
Does exactly the same as example 1, using the default parameter values.
Example 3: 
You need to be logged in to see your course progress.
Shows all courses a user is signed up to and their cumulative grade so far for each course, but the progress bar for each course is hidden.
Example 4: 
You need to be logged in to see your course progress.
Shows all courses a user is signed up to, but their progress and cumulative grades for each course are hidden.
Example 5: 
You need to be logged in to see your course progress.
Only shows courses with IDs of 1 and 2 if the user is signed to them. If the user is not signed up to any of those courses, then that course is not shown. Their progress and cumulative grade so far for each course is also shown. Quiz grades are shown if quiz is applicable. Certificate button will be displayed.