This function has been deprecated. This complex logic is not needed anymore, we use learndash_next_post_link() to get the next step instead.
learndash_get_next_lesson_redirect( WP_Post|null $post = null )
Redirects the user to the 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's redirect link empty.
Source #
Changelog #
Version | Description |
---|---|
4.11.0 | This complex logic is not needed anymore, we use learndash_next_post_link() to get the next step. |
2.1.0 | Introduced. This function has been deprecated. This complex logic is not needed anymore, we use learndash_next_post_link() to get the next step instead. |