Filter: sensei_is_login_required

apply_filters( 'sensei_is_login_required', $must_be_logged_to_view_lesson, $course_id ) → {bool}

Filters the access_permission that says if the user must be logged to view the lesson content.

Parameters:
Name Type Description
$must_be_logged_to_view_lesson bool

True if user need to be logged to see the lesson.

$course_id int | null

Course post ID.

Since:
  • 3.5.2
Source:
Returns:

Whether the user needs to be logged in to view content.

Type
bool