Filter: sensei_can_user_view_module

apply_filters( 'sensei_can_user_view_module', $can_view_module_content, $module_term_id, $course_id, $user_id ) → {bool}

Filter if the user can view module content.

Parameters:
Name Type Description
$can_view_module_content bool

True if they can view module content.

$module_term_id int

Module term ID.

$course_id int

Course post ID.

$user_id int

User ID.

Since:
  • 3.0.0
Source:
Returns:

Filtered value of $can_view_module_content.

Type
bool