Browse: Home / Functions /

learndash_is_previous_complete

learndash_is_previous_complete( WP_Post $post )

Checks if the previous topic or lesson is complete.


Description #


Parameters #

$post

(WP_Post) (Required) The WP_Post object of lesson or topic.


Return #

(int) Returns 1 if the previous lesson or topic is completed otherwise 0.


Source #

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


Changelog #

Changelog
Version Description
3.4.0 Introduced.