LDLMS_Course_Steps::get_parent_step_id( int $step_post_id, string $ancestor_step_type = '' )
Returns the parent step ID for a given step. 0 if no parent step.
Contents
Description #
Parameters #
- $step_post_id
-
(int) (Required) Current step post ID.
- $ancestor_step_type
-
(string) (Optional) Parent step post_type to return.
Default value: ''
Source #
File: sfwd-lms/includes/classes/class-ldlms-model-course-steps.php
Changelog #
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |