Skip to content

No longer able to use my theme's enroll button template override - // TEST code in codebase #584

@waltersonntag

Description

@waltersonntag

// 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions