• Resolved mscsaharan

    (@mscsaharan)


    I have Tutor LMS free version. I have developed membership functionality on my website. When a member is logged in and a new paid course is published, it should show free to member. I have made the course free through the below filter.

    add_filter(‘get_tutor_course_price’, function($price, $course_id) {
    if (is_user_logged_in()) {
    $user_id = get_current_user_id();
    if (user_has_membership($user_id)) { // The function to check membership
    return 0; // Make the course free
    }
    }
    return $price;
    }, 10, 2);

    But when member clicks on “Enroll Now” button, he doesn’t get enrolled.

    Is there any filter or hook I can use for this?

    Thanks & Regards.
    Rajesh

Viewing 1 replies (of 1 total)
  • Nafiz

    (@urnafiz)

    Hello @mscsaharan,

    Thank you for reaching out.

    Custom code implementations fall outside our support scope, so we’re unable to assist with this customization. We recommend consulting a developer for a solution.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.