Filter: sensei_quiz_cache_key_lesson_id

apply_filters( 'sensei_quiz_cache_key_lesson_id', $lesson_id ) → {int}

Filter the lesson ID that keys a user's cached quiz data.

The cached answers, grades, and feedback build their keys through this filter, on reads, writes, and invalidations.

Parameters:
Name Type Description
$lesson_id int

Lesson ID.

Since:
  • $$next-version$$
Source:
Returns:

Lesson ID to key the cache by.

Type
int