learndash_get_lesson_id

learndash_get_lesson_id( int|null $post_id = null,  int|null $course_id = null )

Gets the lesson ID of a resource.


Description #


Parameters #

$post_id

(int|null) (Optional) ID of the resource.

Default value: null

$course_id

(int|null) (Optional) ID of the course.

Default value: null


Return #

(string) Lesson ID.


Source #

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


Changelog #

Changelog
Version Description
2.1.0 Introduced.