LLMS_Generator_Courses::create_lesson( array $raw, int $order, int $section_id, int $course_id, int $fallback_author_id = null )

Create a new lesson


Description Description


Parameters Parameters

$raw

(Required) Raw lesson data.

$order

(Required) Lesson order within the section (starts at 1).

$section_id

(Required) WP Post ID of the lesson's parent section.

$course_id

(Required) WP Post ID of the lesson's parent course.

$fallback_author_id

(Optional) Author ID to use as a fallback if no raw author data supplied for the lesson. Default is null. When not supplied the fall back will be on the current user ID.

Default value: null


Top ↑

Return Return

(int)


Top ↑

Source Source

File: includes/class-llms-generator-courses.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Import images and reusable blocks found in the post's content and use create_post() from abstract.
4.3.3 Use an empty string in favor of null for empty post_content and post_excerpt fields.
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.