Dozent LMS developer documentation

  • Go To DozentLMS.com
Skip to content
Filter by type:
Search
Browse: Home / Classes / Quiz / Quiz::load_quiz_editor()

Quiz::load_quiz_editor()


Source

File: classes/Quiz.php

	public function load_quiz_editor() {
		ob_start();
		wp_editor( '', 'quiz_content', [ 'textarea_rows' => 4 ] );
		$editor_html = ob_get_clean();

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

Expand full source code Collapse full source code

© 2023, Dozent LMS