Filter: sensei_frontend_learner_enrolment_handler

apply_filters( 'sensei_frontend_learner_enrolment_handler', $handler, $user_id, $course_id ) → {callback(int, int):bool}

Lets providers give their own course sign-up handler.

Parameters:
Name Type Description
$handler callback(int, int):bool

Frontend enrolment handler. Takes two arguments: $user_id and $course_id. Returns true if successful; false if not.

$user_id int

User ID.

$course_id int

Course post ID.

Since:
  • 3.0.0
Source:
Returns:

Filtered handler.

Type
callback(int, int):bool