LDLMS_Course_Steps::get_children_steps( int $parent_post_id, string $return_post_type = '', string $return_type = 'ids', bool $nested = false )
Get Parent Children steps.
Description Description
Parameters Parameters
- $parent_post_id
-
(Required) The parent post ID.
- $return_post_type
-
(Optional) Return specific post type.
Default value: ''
- $return_type
-
(Optional) Return type. Default 'ids'. Other values 'objects'.
Default value: 'ids'
- $nested
-
(Optional) Wether to traverse substeps.
Default value: false
Source Source
File: includes/classes/class-ldlms-model-course-steps.php
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Added $nested parameter. |
2.6.0 | Introduced. |