Action: sensei_user_lesson_end

do_action( 'sensei_user_lesson_end', $user_id, $lesson_id )

Fires when a user completes a lesson. Here as part of grading a quiz.

Parameters:
Name Type Description
$user_id int

The user ID.

$lesson_id int

The lesson ID.

Source:

do_action( 'sensei_user_lesson_end', $user_id, $lesson_id )

Fires when a user completes a lesson. Here when the answers are submitted and the lesson is complete.

Parameters:
Name Type Description
$user_id int

The user ID.

$lesson_id int

The lesson ID.

Source:

do_action( 'sensei_user_lesson_end', $user_id, $lesson_id )

Fires when a user completes a lesson.

This hook is fired when a user completes a lesson, passes a quiz or their quiz submission was graded. Therefore the corresponding lesson is marked as complete.

Parameters:
Name Type Description
$user_id int

The user ID.

$lesson_id int

The lesson ID.

Since:
  • 1.7.0
Source: