How to Redirect LearnDash User From Course Page to First Lesson Page

How to Redirect LearnDash User From Course Page to First Lesson Page
[cs_content][cs_element_section _id=”1″][cs_element_row _id=”2″][cs_element_column _id=”3″][cs_element_content_area _id=”4″][x_code]post_type == ‘sfwd-courses’)) {
if (sfwd_lms_has_access($q_object->ID)) {
$steps = learndash_get_course_steps($q_object->ID);
if (count($steps)) {
wp_redirect(get_permalink($steps[0]));
die();
}
}
}
}
}

, 1);

?>[/x_code][cs_element_alert _id=”6″][/cs_element_column][/cs_element_row][/cs_element_section][/cs_content]

Select your currency
USD United States (US) dollar