LLMS_Generator_Courses::generate_course( array $raw )
Generator called for single course imports
Description Description
Converts the single course into a format that can be handled by the bulk courses generator and invokes that generator.
Parameters Parameters
- $raw
-
(Required) Raw data array.
Return Return
(int|null) WP_Post ID of the generated course or null
on failure.
Source Source
File: includes/class-llms-generator-courses.php
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Moved from LLMS_Generator and made public instead of private . Returns an int on success. |
3.3.0 | Introduced. |