learndash_course_get_steps_by_type( int $course_id, string $step_type = '' )
Gets the course steps by type.
Description #
Parameters #
- $course_id
-
(int) (Optional) Course ID. Default 0.
- $step_type
-
(string) (Optional) The type of the step.
Default value: ''
Return #
(array) An array of course step IDs.
Source #
Changelog #
Version | Description |
---|---|
2.5.0 | Introduced. |
Related #
Namespace #
@package #
Uses #
Uses | Description |
---|---|
includes/class-ldlms-post-types.php: learndash_get_post_types () | |
includes/classes/class-ldlms-factory-post.php: LDLMS_Factory_Post::course_steps () |
Get a Course Steps. |
Used By #
Used By | Description |
---|---|
includes/classes/class-ldlms-model-user-course-progress.php: LDLMS_Model_User_Course_Progress::build_course_progress_linear_order () |
Build the Course Progress node for ‘l’ Linear order. |
includes/course/ld-course-functions-legacy.php: learndash_get_course_steps_legacy () |
LEGACY: Gets all the lessons and topics for a given course ID. |
includes/course/ld-course-functions-legacy.php: learndash_course_get_completed_steps_legacy () |
LEGACY: Gets the total completed steps for a given course progress array. |
includes/classes/class-ldlms-model-course.php: LDLMS_Model_Course::get_steps () |
Get Course Steps. |
includes/classes/class-ldlms-model-user-course-progress.php: LDLMS_Model_User_Course_Progress::build_course_progress_legacy () |
Build Course Progress node for ‘legacy’. |
includes/classes/class-ldlms-model-user-course-progress.php: LDLMS_Model_User_Course_Progress::build_course_progress_completion_order () |
Build the Course Progress node for ‘co’ Completion order. |
includes/classes/class-ldlms-model-user-course-progress.php: LDLMS_Model_User_Course_Progress::build_course_progress_by_activity () |
Build the Course Progress node for ‘activity’ Activity. |
includes/rest-api/v2/class-ld-rest-lessons-controller.php: LD_REST_Lessons_Controller_V2::rest_query_filter () |
Filter Lessons query args. |
includes/rest-api/v2/class-ld-rest-quizzes-controller.php: LD_REST_Quizzes_Controller_V2::rest_query_filter () |
Filter query args. |
includes/rest-api/v2/class-ld-rest-topics-controller.php: LD_REST_Topics_Controller_V2::rest_query_filter () |
Filter query args. |
includes/admin/classes-posts-listings/class-learndash-admin-assignments-listing.php: Learndash_Admin_Assignments_Listing::listing_filter_by_topic () |
Filter the main query listing by the topic_id |
includes/admin/classes-posts-listings/class-learndash-admin-essays-listing.php: Learndash_Admin_Essays_Listing::listing_filter_by_topic () |
Filter the main query listing by the topic_id |
themes/ld30/includes/helpers.php: learndash_focus_mode_lesson_query_args () |
Gets the focus mode lesson query arguments. |
includes/widgets/ld_lesson.php: Lesson_Widget::course_lessons_list () |
Sets up course lesson list HTML |
includes/class-ld-lms.php: SFWD_LMS::select_a_quiz () |
Makes wp_query to retrieve quizzes a course |
includes/rest-api/v1/class-ld-rest-lessons-controller.php: LD_REST_Lessons_Controller_V1::rest_query_filter () |
Filter query args. |
includes/rest-api/v1/class-ld-rest-quizzes-controller.php: LD_REST_Quizzes_Controller_V1::rest_query_filter () |
Filter query args. |
includes/rest-api/v1/class-ld-rest-topics-controller.php: LD_REST_Topics_Controller_V1::rest_query_filter () |
Filter query args. |
includes/shortcodes/ld_courseinfo.php: learndash_courseinfo () |
Builds the |
includes/course/ld-course-steps-functions.php: learndash_get_course_steps () |
Gets all the lessons and topics for a given course ID. |
includes/course/ld-course-steps-functions.php: learndash_course_get_completed_steps () |
Gets the total completed steps for a given course progress array. |
includes/deprecated/3.4.0/functions.php: learndash_course_get_steps_by_type_ORG1 () |
Gets the course steps by type. |
includes/widgets/ld_course_navigation.php: LearnDash_Course_Navigation_Widget::widget () |
Displays widget |
includes/course/ld-course-info-widget.php: learndash_course_navigation_admin_box_content () |
Adds the content to the course navigation meta box for admin. |
includes/shortcodes/ld_lesson_list.php: ld_lesson_list () |
Builds the |
includes/shortcodes/ld_quiz_list.php: ld_quiz_list () |
Builds the |
includes/shortcodes/ld_topic_list.php: ld_topic_list () |
Builds the |
includes/shortcodes/ld_course_list.php: ld_course_list () |
Builds the |