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::generate_course()
Generator called for single course imports converts the single course into a format that can be handled by the bulk courses generator and invokes that generator
Description Description
Return Return
(void)
Source Source
File: includes/class.llms.generator.php
private function generate_course() { $temp = array(); foreach ( array( '_generator', '_version', '_source' ) as $meta ) { if ( isset( $this->raw[ $meta ] ) ) { $temp[ $meta ] = $this->raw[ $meta ]; unset( $this->raw[ $meta ] ); } } $temp['courses'] = array( $this->raw ); $this->raw = $temp; $this->generate_courses(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |