learndash_forced_lesson_time

learndash_forced_lesson_time( string|int|WP_Post $lesson_topic_post = '' )

Gets the lesson time for a lesson if it exists.


Description #


Parameters #

$lesson_topic_post

(string|int|WP_Post) (Optional) The WP_Post lesson topic post object or ID. Defaults to global post object.

Default value: ''


Return #

(int|string) Returns lesson time if it exists otherwise 0.


Source #

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


Changelog #

Changelog
Version Description
2.1.0 Introduced.