Warning: This method has been deprecated. There is not a replacement instead.

LLMS_AJAX_Handler::add_lesson_to_course( array $request )

Add a lesson to a course

Parameters Parameters


(array) (Required) $_POST data.

Top ↑

Return Return


Top ↑

Source Source

File: includes/class.llms.ajax.handler.php

	public static function add_lesson_to_course( $request ) {

		llms_deprecated_function( __METHOD__, '5.7.0' );
		$lesson_id = LLMS_Lesson_Handler::assign_to_course( $request['post_id'], $request['section_id'], $request['lesson_id'] );

		$html = LLMS_Meta_Box_Course_Outline::lesson_tile( $lesson_id, $request['section_id'] );

		return $html;


Top ↑

Changelog Changelog

Version Description
5.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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