CourseBuilder::lecture_load_edit()


Source

File: classes/CourseBuilder.php

	public function lecture_load_edit() {
		$item_id = (int) dozent_input_text( 'item_id' );
		$item    = get_post( $item_id );

		ob_start();
		include DOZENT_ABSPATH . 'views/course_builder/edit_lecture.php';
		$html = ob_get_clean();

		wp_send_json_success( [ 'html' => $html ] );
	}