Filter: sensei_course_content_has_access

apply_filters( 'sensei_course_content_has_access', $has_access_to_content, $course_id ) → {bool}

Access check for the course content.

Parameters:
Name Type Description
$has_access_to_content bool

Filtered variable for if the visitor has access to view the content.

$course_id int

Post ID for the course.

Since:
  • 2.0.0
Source:
Returns:

Filtered variable for if the visitor has access to view the content.

Type
bool