learndash_course_get_single_parent_step( int $course_id, int $step_id, string $step_type = '' )
Gets the single parent step ID for a given step ID in a course.
Description #
Parameters #
- $course_id
-
(int) (Optional) Course ID. Default 0.
- $step_id
-
(int) (Optional) Step ID. Default 0.
- $step_type
-
(string) (Optional) The type of the step.
Default value: ''
Return #
(int) The parent step ID.
Source #
Changelog #
Version | Description |
---|---|
2.5.0 | Introduced. |
Related #
Namespace #
@package #
Uses #
Uses | Description |
---|---|
includes/course/ld-course-functions.php: learndash_is_course_builder_enabled () |
Utility function to check if Course Builder is enabled. |
includes/classes/class-ldlms-factory-post.php: LDLMS_Factory_Post::course_steps () |
Get a Course Steps. |
Used By #
Used By | Description |
---|---|
src/Core/Mappers/Steps/Quiz.php: Quiz::to_step () |
Maps the current model to a step. |
includes/shortcodes/ld_quiz.php: learndash_quiz_shortcode_function () |
Builds the |
includes/course/ld-course-progress.php: learndash_is_quiz_accessable () |
Checks if the quiz is accessible to the user. |
includes/course/ld-course-functions-legacy.php: learndash_is_quiz_accessable_legacy () |
Checks if the quiz is accessible to the user (legacy). |
includes/course/ld-course-functions-legacy.php: learndash_get_course_progress_legacy () |
LEGACY: Gets the user’s current course progress. |
includes/course/ld-course-functions-legacy.php: learndash_process_mark_complete_legacy () |
LEGACY: Updates the user meta with completion status for any resource. |
includes/course/ld-course-functions-legacy.php: learndash_get_topic_list_legacy () |
LEGACY: Gets the topics list for a lesson. |
includes/rest-api/v2/class-ld-rest-essays-controller.php: LD_REST_Essays_Controller_V2::get_essay_post_data () |
Initialize the essay Post data elements used by many class functions. |
includes/rest-api/v2/class-ld-rest-quizzes-controller.php: LD_REST_Quizzes_Controller_V2::get_rest_settings_field_value () |
Get REST Setting Field value. |
includes/rest-api/v2/class-ld-rest-assignments-controller.php: LD_REST_Assignments_Controller_V2::get_assignment_post_data () |
Initialize the Assignment Post data elements used by many class functions. |
includes/admin/class-learndash-admin-posts-listing.php: Learndash_Admin_Posts_Listing::show_column_step_lesson_or_topic () |
Show Lesson or Topic column for Step. |
themes/ld30/includes/helpers.php: learndash_focus_mode_lesson_query_args () |
Gets the focus mode lesson query arguments. |
themes/ld30/includes/helpers.php: learndash_lesson_progress () |
Gets the Lesson Progress. |
themes/ld30/includes/helpers.php: learndash_get_breadcrumbs () |
Gets the breadcrumbs hierarchy. |
includes/ld-misc-functions.php: learndash_is_sample () |
Checks if a lesson, topic, or quiz is a sample or not. |
includes/class-ld-cpt.php: SFWD_CPT::show_content () |
To show content 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/class-ld-cpt-instance.php: SFWD_CPT_Instance::template_content () |
Generate output for courses, lessons, topics, quizzes Filter callback for ‘the_content’ (wp core filter) |
includes/quiz/ld-quiz-essays.php: learndash_add_new_essay_response () |
Adds a new essay response. |
includes/lib/wp-pro-quiz/lib/view/WpProQuiz_View_FrontQuiz.php: WpProQuiz_View_FrontQuiz::script () | |
includes/lib/wp-pro-quiz/lib/view/WpProQuiz_View_FrontQuiz.php: WpProQuiz_View_FrontQuiz::max_question_script () | |
includes/shortcodes/ld_course_content.php: learndash_course_content_shortcode () |
Builds the |
includes/course/ld-course-functions.php: learndash_get_lesson_id () |
Gets the lesson ID of a resource. |
includes/course/ld-course-navigation.php: learndash_previous_post_link () |
Generates the previous post link for lesson or topic. |
includes/course/ld-course-navigation.php: learndash_next_post_link () |
Generates the next post link for lesson or topic. |
includes/course/ld-course-navigation.php: learndash_quiz_continue_link () |
Outputs the quiz continue link. |
includes/course/ld-course-progress.php: learndash_process_mark_incomplete () |
Marks a course step incomplete for a course. |
includes/course/ld-course-progress.php: learndash_process_mark_complete () |
Updates the user meta with completion status for any resource. |
includes/course/ld-course-progress.php: learndash_get_course_progress () |
Gets the user’s current course progress. |
includes/course/ld-course-progress.php: learndash_is_topic_notcomplete () |
Checks if a topic is not complete. |
includes/widgets/ld_course_navigation.php: LearnDash_Course_Navigation_Widget::widget () |
Displays widget |
includes/course/ld-course-progress.php: learndash_mark_complete () |
Outputs the HTML output to mark a course complete. |
includes/course/ld-course-progress.php: learndash_get_next_lesson_redirect () |
Redirects the user to next lesson. |
includes/course/ld-course-progress.php: learndash_quiz_redirect () |
Redirects the user after quiz completion. |
includes/course/ld-course-info-widget.php: learndash_course_navigation_admin_box_content () |
Adds the content to the course navigation meta box for admin. |