Action: sensei_user_lesson_reset

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

Fires when a user resets a lesson. Run any action on quiz/lesson reset (previously this didn't occur on resetting a quiz, see resetting a lesson in sensei_complete_lesson()).

Parameters:
Name Type Description
$user_id int

The user ID.

$lesson_id int

The lesson ID.

Source:

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

Fires when user progress is reset in a lesson.

Parameters:
Name Type Description
$user_id int

The user ID.

$lesson_id int

The lesson ID.

Source: