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_Postlesson topic post object or ID. Defaults to global post object.Default value: ''
Return #
(int|string) Returns lesson time if it exists otherwise 0.
Source #
Changelog #
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |