Filter: sensei_lesson_prerequisite

apply_filters( 'sensei_lesson_prerequisite', $prerequisite_lesson_id, $current_lesson_id ) → {string|bool}

Filter the lesson prerequisite.

Parameters:
Name Type Description
$prerequisite_lesson_id string | bool

Prerequisite lesson ID. False if prerequisite lesson ID is empty, is not a lesson, or equals the current lesson ID.

$current_lesson_id int

Lesson ID.

Since:
  • 1.0
Source:
Returns:

Prerequisite lesson ID.

Type
string | bool