Action: sensei_course_enrolment_status_changed

do_action( 'sensei_course_enrolment_status_changed', $user_id, $course_id, $is_enrolled )

Fire action when course enrolment status changes.

Parameters:
Name Type Description
$user_id int

User ID.

$course_id int

Course post ID.

$is_enrolled bool

New enrolment status.

Since:
  • 3.0.0
Source: