is_previous_complete

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
2.1.0 Introduced.