learndash_get_lesson_id( int|null $post_id = null, int|null $course_id = null )
Gets the lesson ID of a resource.
Description Description
Parameters Parameters
- $post_id
-
(Optional) ID of the resource.
Default value: null
- $course_id
-
(Optional) ID of the course.
Default value: null
Return Return
(string) Lesson ID.
Source Source
File: includes/course/ld-course-functions.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |