LDLMS_Course_Steps::get_children_steps

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 #


Parameters #

$parent_post_id

(int) (Required) The parent post ID.

$return_post_type

(string) (Optional) Return specific post type.

Default value: ''

$return_type

(string) (Optional) Return type. Other values 'objects'.

Default value: 'ids'

$nested

(bool) (Optional) Wether to traverse substeps.

Default value: false


Source #

File: includes/classes/class-ldlms-model-course-steps.php


Changelog #

Changelog
Version Description
3.4.0 Added $nested parameter.
2.6.0 Introduced.