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. ContentsDescription Parameters Return Source Changelog Related Uses Used By 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. Related # Uses # Uses Uses Description includes/settings/class-ld-settings-sections.php: LearnDash_Settings_Section::get_section_setting () Static function to get a Section Setting value. includes/course/ld-course-functions.php: learndash_get_page_by_path () Gets the page data by page path. includes/course/ld-course-functions.php: learndash_course_get_single_parent_step () Gets the single parent step ID for a given step ID in a course. includes/course/ld-course-functions.php: learndash_get_course_id () Gets the course ID for a resource. Used By # Used By Used By Description includes/ld-misc-functions.php: learndash_get_setting () Gets the LearnDash setting for a post. includes/ld-assignment-uploads.php: learndash_is_assignment_approved () Checks if the assignment is approved or not. includes/class-ld-permalinks.php: LearnDash_Permalinks::post_type_link () This second filter will correct calls to the WordPress get_permalink() function to use the new structure includes/quiz/ld-quiz-essays.php: learndash_add_new_essay_response () Adds a new essay response. includes/course/ld-course-progress.php: learndash_is_topic_notcomplete () Checks if a topic is not complete.
Uses # Uses Uses Description includes/settings/class-ld-settings-sections.php: LearnDash_Settings_Section::get_section_setting () Static function to get a Section Setting value. includes/course/ld-course-functions.php: learndash_get_page_by_path () Gets the page data by page path. includes/course/ld-course-functions.php: learndash_course_get_single_parent_step () Gets the single parent step ID for a given step ID in a course. includes/course/ld-course-functions.php: learndash_get_course_id () Gets the course ID for a resource.
Used By # Used By Used By Description includes/ld-misc-functions.php: learndash_get_setting () Gets the LearnDash setting for a post. includes/ld-assignment-uploads.php: learndash_is_assignment_approved () Checks if the assignment is approved or not. includes/class-ld-permalinks.php: LearnDash_Permalinks::post_type_link () This second filter will correct calls to the WordPress get_permalink() function to use the new structure includes/quiz/ld-quiz-essays.php: learndash_add_new_essay_response () Adds a new essay response. includes/course/ld-course-progress.php: learndash_is_topic_notcomplete () Checks if a topic is not complete.