Browse: Home / Classes / LDLMS_Course_Steps /

LDLMS_Course_Steps::set_steps

LDLMS_Course_Steps::set_steps( array $course_steps = array(),  bool $keep_sections = false )

Set Course steps.


Description #

This is generally called when editing the course and the course steps has been changed.


Parameters #

$course_steps

(array) (Optional) Array of Course steps.

Default value: array()

$keep_sections

(bool) (Optional) Whether to keep the existing sections when setting steps or not.

Default value: false


Return #

(void)


Source #

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


Changelog #

Changelog
Version Description
4.10.0 Add $keep_sections parameter to keep sections when updating steps.
2.5.0 Introduced.