|
// Test |
|
$singleCourseTemplate = SingleCourseTemplate::instance(); |
|
$course = CourseModel::find( get_the_ID(), true ); |
|
$user = UserModel::find( get_current_user_id(), true ); |
|
echo $singleCourseTemplate->html_btn_purchase_course( $course, $user ); |
|
return; |
|
// End test |
Why is this here? Should this // Test code be here?
It breaks my ability to override the enroll button template file with a custom override file that exists in my theme. The return line at line 188 prevents the code further down the function which checks for custom theme template override files.