apply_filters( 'sensei_can_access_course_content', $can_view_course_content, $course_id, $user_id, $context ) → {bool}
Filters if a visitor can view course content.
Parameters:
Name | Type | Description |
---|---|---|
$can_view_course_content |
bool | True if they can view the course content. |
$course_id |
int | Course post ID. |
$user_id |
int | User ID if user is logged in. |
$context |
string | Context that we're checking for course content
access ( |
- Since:
- 3.0.0
- Source:
Returns:
Whether the visitor can view course content.
- Type
- bool