learndash_next_post_link

learndash_next_post_link( string $prevlink = '',  boolean $url = false,  WP_Post|null $post = null )

Generates the next post link for lesson or topic.


Description #


Parameters #

$prevlink

(string) (Optional) Default next post link.

Default value: ''

$url

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

Default value: false

$post

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

Default value: null


Return #

(string) Next post link URL or HTML output.


Source #

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


Changelog #

Changelog
Version Description
2.1.0 Introduced.