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 Namespace @package 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 # Namespace # global @package # LearnDash / Course Uses # Uses Uses Description includes/course/ld-course-functions.php: learndash_is_course_shared_steps_enabled () Utility function to check if Course Shared steps is enabled. includes/class-ldlms-post-types.php: learndash_get_post_types () includes/class-ldlms-post-types.php: learndash_get_post_type_slug () includes/course/ld-course-functions.php: learndash_get_page_by_path () Gets the page data by page path. includes/course/ld-course-steps-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/course/ld-course-steps-functions.php: learndash_course_add_child_to_parent () Add a step as child of a parent. src/Core/Mappers/Steps/Topic.php: Topic::to_step () Maps the current model to a step. includes/course/ld-course-functions-legacy.php: learndash_is_topic_notcomplete_legacy () LEGACY: Checks if a topic is not complete. includes/settings/settings-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.
Uses # Uses Uses Description includes/course/ld-course-functions.php: learndash_is_course_shared_steps_enabled () Utility function to check if Course Shared steps is enabled. includes/class-ldlms-post-types.php: learndash_get_post_types () includes/class-ldlms-post-types.php: learndash_get_post_type_slug () includes/course/ld-course-functions.php: learndash_get_page_by_path () Gets the page data by page path. includes/course/ld-course-steps-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/course/ld-course-steps-functions.php: learndash_course_add_child_to_parent () Add a step as child of a parent. src/Core/Mappers/Steps/Topic.php: Topic::to_step () Maps the current model to a step. includes/course/ld-course-functions-legacy.php: learndash_is_topic_notcomplete_legacy () LEGACY: Checks if a topic is not complete. includes/settings/settings-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.