Filter: sensei_can_user_manually_enrol

apply_filters( 'sensei_can_user_manually_enrol', $can_user_manually_enrol, $course_id ) → {bool}

Check if currently logged in user can manually enrol themselves. Defaults to true when not already enrolled.

Parameters:
Name Type Description
$can_user_manually_enrol bool

True if they can manually enrol themselves, false if not.

$course_id int

Course post ID.

Since:
  • 3.0.0
Source:
Returns:

Filtered value.

Type
bool