Filter: sensei_can_user_view_lesson

apply_filters( 'sensei_can_user_view_lesson', $can_user_view_lesson, $lesson_id, $user_id ) → {bool}

Filter if the user can view lesson and quiz content.

Parameters:
Name Type Description
$can_user_view_lesson bool

True if they can view lesson/quiz content.

$lesson_id int

Lesson post ID.

$user_id int

User ID. $param {array} $checks Array of checks that were made to determine access.

Since:
  • 4.24.2 Added $checks parameter.
Source:
Returns:

Filtered access.

Type
bool