Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Generator::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.


Top ↑

Parameters Parameters

$raw

(array) (Required) Raw section data.

$order

(int) (Required) Order within the course (starts at 1).

$course_id

(int) (Required) WP Post ID of the parent course.

$fallback_author_id

(int) (Optional) author ID to use as a fallback if no raw author data supplied for the lesson.

Default value: null


Top ↑

Return Return

(int) The WP_Post ID of the generated section.


Top ↑

Source Source

File: includes/class.llms.generator.php



Top ↑

Changelog Changelog

Changelog
Version Description
3.30.2 Added hooks.
3.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.