Browse: Home / Classes / LearnDash_Course_Wizard /

LearnDash_Course_Wizard::create_course_from_playlist

LearnDash_Course_Wizard::create_course_from_playlist( object $playlist_data,  string $course_price_type,  string $course_disable_lesson_progression,  string $course_price = null,  string $course_price_billing_number = null,  string $course_price_billing_interval = null )

Create a course based on the playlist.


Description #


Parameters #

$playlist_data

(object) (Required) - Playlist data. { { @type string $playlist_title Playlist title. @type string $playlist_description Playlist description. @type int $playlist_count Playlist count. @type array $playlist_items { @type string $video_title Video title. @type string $video_description Video description. @type string $video_id Video id. @type string $video_url Video url. } Playlist items. }

$course_price_type

(string) (Required) - Course price type.

$course_disable_lesson_progression

(string) (Required) - Course disable lesson progression.

$course_price

(string) (Optional) - Course price, only for paynow and subscribe.

Default value: null

$course_price_billing_number

(string) (Optional) - Course price billing cycle number, only for subscribe.

Default value: null

$course_price_billing_interval

(string) (Optional) - Course price billing cycle interval, only for subscribe.

Default value: null


Return #

(int) - Course post id


Source #

File: includes/class-ld-course-wizard.php