apply_filters( 'sensei_course_learning_mode_enabled', $enabled, $course_id ) → {bool}
Filters if a course has learning mode enabled.
Parameters:
Name | Type | Description |
---|---|---|
$enabled |
bool | True if the learning mode is enabled for the course or globally. |
$course_id |
int | The id of the course. |
- Since:
- 4.0.0
- Source:
Returns:
The modified learning mode setting.
- Type
- bool