# learnpress/4.4.5/inc/Helpers/Response.php

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

- Page: https://pluginprobe.com/plugins/learnpress/4.4.5/code/inc/Helpers/Response.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.5/raw/inc/Helpers/Response.php
- Modified: 2026-08-22T04:23:06+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.5/code/inc/Helpers/Response.php#L10-L20`.

```php
<?php

namespace LearnPress\Helpers;

use stdClass;

defined( 'ABSPATH' ) || exit;

/**
 * Class Response
 *
 * @package LearnPress/Helpers
 * @version 1.0.0
 * @since 4.3.7
 */
class Response {
	const STATUS_SUCCESS = 'success';
	const STATUS_ERROR   = 'error';
	/**
	 * Status.
	 *
	 * @var string.
	 */
	public $status = self::STATUS_ERROR;
	/**
	 * Message.
	 *
	 * @var string .
	 */
	public $message = '';
	/**
	 * Extra data
	 *
	 * @var object
	 */
	public $data;

	/**
	 * LP_REST_Response constructor.
	 */
	public function __construct() {
		$this->data = new stdClass();
	}
}

```
