learndash_get_next_lesson_redirect

learndash_get_next_lesson_redirect( WP_Post|null $post = null )

Redirects the user to next lesson.


Description #


Parameters #

$post

(WP_Post|null) (Optional) The WP_Post object. Defaults to global post object.

Default value: null


Return #

(string) Returns empty string if the next lesson redirect link empty.


Source #

File: includes/course/ld-course-progress.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.