# learnpress/4.4.7/inc/Models/Question/QuestionPostMultipleChoiceModel.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.7. 45 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.7/code/inc/Models/Question/QuestionPostMultipleChoiceModel.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.7/raw/inc/Models/Question/QuestionPostMultipleChoiceModel.php
- Modified: 2026-09-11T09:28:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.4.7/code/inc/Models/Question/QuestionPostMultipleChoiceModel.php#L10-L20`.

```php
<?php

namespace LearnPress\Models\Question;

/**
 * Class QuestionPostTrueFalseModel
 * To replace class LP_Question old
 *
 * @package LearnPress/Classes
 * @version 1.0.0
 * @since 4.2.9
 */
class QuestionPostMultipleChoiceModel extends QuestionPostModel {
	public $question_type = 'multi_choice';

	public function get_default_answers(): array {
		return array(
			array(
				'is_true' => 'yes',
				'value'   => learn_press_random_value(),
				'title'   => esc_html__( 'First option', 'learnpress' ),
				'order'   => 1,
			),
			array(
				'is_true' => '',
				'value'   => learn_press_random_value(),
				'title'   => esc_html__( 'Second option', 'learnpress' ),
				'order'   => 2,
			),
			array(
				'is_true' => '',
				'value'   => learn_press_random_value(),
				'title'   => esc_html__( 'Third option', 'learnpress' ),
				'order'   => 3,
			),
			array(
				'is_true' => '',
				'value'   => learn_press_random_value(),
				'title'   => esc_html__( 'Four option', 'learnpress' ),
				'order'   => 4,
			),
		);
	}
}

```
