LLMS_Generator_Courses::create_section( array $raw, int $order, int $course_id, int $fallback_author_id = null )
Creates a new section
Description Description
Creates all lessons within the section data.
Parameters Parameters
- $raw
-
(Required) Raw section data.
- $order
-
(Required) Order within the course (starts at 1).
- $course_id
-
(Required) WP Post ID of the parent course.
- $fallback_author_id
-
(Optional) Author ID to use as a fallback if no raw author data supplied for the section. When not supplied the fall back will be on the current user ID.
Default value: null
Return Return
(int)
Source Source
File: includes/class-llms-generator-courses.php
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Use create_post() from abstract. |
3.30.2 | Added hooks. |
3.3.0 | Introduced. |