Action: sensei_admin_enrol_user

do_action( 'sensei_admin_enrol_user', $course_id, $user_id )

Notify when a user should be enrolled to the course.

Parameters:
Name Type Description
$course_id int

Course that the user will be enrolled to.

$user_id int

User ID.

Since:
  • 3.13.3
Source: