LLMS_Generator_Courses::clone_lesson( array $raw )

Generator called when cloning a lesson


Parameters Parameters

$raw

(array) (Required) Raw data array.


Top ↑

Return Return

(int|WP_Error) WP_Post ID of the created lesson on success and an error object on failure.


Top ↑

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, '', '' );
	}


Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.