• Hi, I have a site that uses both MemberPress and Learnpress so that it allows users to pay a monthly fee and add one course to their account per monthly payment.

    The flow is:
    – Pay the monthly subscription in Memberpress
    – Get the role ‘Course Available’
    – Enroll in Learnpress course
    – Get the role ‘Course Unavailable’
    – Use has the course saved in their account for as long as the account is active
    – One month passes, user pays the subscription

    – Get the role ‘Course Available’
    – Enroll in Learnpress course
    – Get the role ‘Course Unavailable’

    …And this repeats every month.

    The part that I’m having problems is “Get the role ‘Course Unavailable’ “.
    In the past I’ve used the ‘learn-press/user-enrolled-course’ filter, but this was removed in Learnpress 4.

    Is there a way that I can get this done without this filter?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi,

    Please use this hook, we change it to like this

    
    do_action( 'learnpress/user/course-enrolled', $order_id, $course_id, $user_id );
    

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Learnpress enroll filter’ is closed to new replies.