Quiz::quiz_question_delete()


Source

File: classes/Quiz.php

	public function quiz_question_delete() {
		global $wpdb;
		$question_id = dozent_input_text( 'question_id' );

		$wpdb->delete( $wpdb->dozent_quiz_questions, [ 'question_id' => $question_id ] );
		$wpdb->delete( $wpdb->dozent_quiz_question_options, [ 'question_id' => $question_id ] );

		wp_send_json_success();
	}