Browse: Home / Functions /


learndash_previous_post_link( string $prev_link = '',  boolean $url = false,  WP_Post|null $post = null )

Generates the previous post link for lesson or topic.

Description #

Parameters #


(string) (Optional) Default previous post link.

Default value: ''


(boolean) (Optional) Whether to return URL instead of HTML output.

Default value: false


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

Default value: null

Return #

(string) Previous post link URL or HTML output.

Source #

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

Changelog #

Version Description
2.1.0 Introduced.