LMS : How to make free courses to show on “My Courses” page

Do you want to display the free courses under “My Courses” page. Then Kindly follow the below steps.

Step 1

Get into the file path /wp-content/plugins/designthemes-core-features/custom-post-types/functions.php at line number 1734 ( Approx ) there you need to comment the code.

Step 2

Kindly add the below code under the above file path.

$course_ids_arr = dt_get_user_graded_course();
$free_course = array_diff($course_ids_arr, $ccaps);
$ccaps = array_merge($ccaps, $free_course);

Leave A Comment?

This site uses Akismet to reduce spam. Learn how your comment data is processed.