apply_filters( 'sensei_course_show_lessons', $show_lessons, $course_id ) → {bool}
Set the visibility of lessons on the single course page.
Parameters:
Name | Type | Description |
---|---|---|
$show_lessons |
bool | Whether the lessons should be shown. Default true. |
$course_id |
int | false | Course ID. |
- Since:
- 2.2.0
- Source:
Returns:
Filtered visibility of lessons.
- Type
- bool