LDLMS_Course_Steps
Class for LearnDash Course Steps.
Description Description
Source Source
File: includes/classes/class-ldlms-model-course-steps.php
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
Methods Methods
- __construct — Public constructor for class.
- _flatten_item_parent_steps — Internal utility function to reverse parent keys of the Course nodes and items.
- _steps_reverse_keys_walk — Internal utility function to reverse walk the Course steps nodes and items
- build_steps — Build Course Steps nodes.
- calculate_steps_count — Calculate the total steps count for the course.
- clear_steps_dirty — Clear the steps dirty flag.
- flatten_item_parent_steps — Internal utility function to reverse parent keys of the Course nodes and items.
- get_all_steps_ids — Get all steps ids
- get_children_steps — Get Parent Children steps.
- get_item_parent_steps — Get Course Step parents.
- get_objects_steps_ids — Get the post IDs of the objects.
- get_parent_step_id — Get Single Course Step parent.
- get_step_post_statuses — Get the array of 'post_stats' keys used for Course Steps queries.
- get_steps — Get Course steps by node type.
- get_steps_count — Get the total steps for the course.
- is_steps_dirty — Check if the steps dirty flag is set.
- load_steps — Load Course Steps.
- load_steps_legacy — Load Course Steps for legacy setup (non-shared steps).
- load_steps_meta — Load the Steps Post meta data set.
- load_steps_objects — Load the Steps Objects.
- save_steps_meta — Set the Steps Post meta data set.
- set_step_to_course — This function sets a post_meta association for the various steps within the course.
- set_step_to_course_legacy — Set Steps to Course Legacy.
- set_step_to_course_order — Internal utility function to update the step postmeta menu_order value.
- set_step_to_course_relationship — Internal utility function to update the step postmeta with the parent course_id.
- set_steps — Set Course steps.
- set_steps_count_meta — Set the total steps postmeta for the course.
- set_steps_dirty — Sets the Course steps dirty flag and will force the steps to be reloaded from queries.
- steps_grouped_by_type — This converts the normal hierachy steps into an array groups be the post type. This is easier for search.
- steps_grouped_completion_order — Steps grouped by Completion Order.
- steps_grouped_legacy — Steps grouped Legacy.
- steps_grouped_linear — Steps grouped linear.
- steps_grouped_reverse_keys — Group Steps reversed keys.
- steps_grouped_sections — Group Steps by Section.
- steps_reverse_keys_walk — Internal utility function to reverse walk the Course steps nodes and items
- steps_split_keys — Steps split keys.
- validate_steps — Validate Course Steps nodes and items.