LLMS_Generator_Courses::clone_lesson( array $raw )
Generator called when cloning a lesson
Parameters Parameters
- $raw
-
(array) (Required) Raw data array.
Return Return
(int|WP_Error) WP_Post ID of the created lesson on success and an error object on failure.
Source Source
File: includes/class-llms-generator-courses.php
public function clone_lesson( $raw ) { return $this->create_lesson( $this->setup_raw_for_clone( $raw ), 0, '', '' ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Moved from LLMS_Generator and made public instead of private . |
4.13.0 | Use setup_raw_for_clone() to normalize the |
3.14.8 | Introduced. |