Quiz::load_edit_question_modal()


Source

File: classes/Quiz.php

	public function load_edit_question_modal() {
		$question_id = (int) dozent_input_text( 'question_id' );
		$question    = dozent_get_question( $question_id );

		ob_start();
		include DOZENT_ABSPATH . 'views/course_builder/edit_question.php';
		$course_contents = ob_get_clean();

		wp_send_json_success( [ 'modal_html' => $course_contents ] );
	}