Filter: sensei_lesson_take_course_url

apply_filters( 'sensei_lesson_take_course_url', $take_course_url, $course_id ) → {string}

Filter the take course URL displayed in lessons. Notice that in Learning Mode, when user is logged-in, it will not use this filter and directly enroll the user in the course.

Parameters:
Name Type Description
$take_course_url string

Take course URL.

$course_id int

Course ID.

Since:
  • 4.4.1
Source:
Returns:

Returns filtered take course URL.

Type
string