# learnpress/4.3.7/inc/emails/student/class-lp-email-cancelled-order-user.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.3.7. 38 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.3.7/code/inc/emails/student/class-lp-email-cancelled-order-user.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.3.7/raw/inc/emails/student/class-lp-email-cancelled-order-user.php
- Modified: 2026-05-23T18:20:54+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.3.7/code/inc/emails/student/class-lp-email-cancelled-order-user.php#L10-L20`.

```php
<?php
/**
 * LP_Email_Cancelled_Order_User.
 *
 * @author  ThimPress
 * @package Learnpress/Classes
 * @extends LP_Email_Type_Order
 * @version 3.0.0
 * @editor tungnx
 * @modify 4.1.3
 */

/**
 * Prevent loading this file directly
 */
defined( 'ABSPATH' ) || exit();

if ( ! class_exists( 'LP_Email_Cancelled_Order_User' ) ) {
	class LP_Email_Cancelled_Order_User extends LP_Email_Type_Order_Student {
		/**
		 * LP_Email_Cancelled_Order_User constructor.
		 */
		public function __construct() {
			$this->id          = 'cancelled-order-user';
			$this->title       = __( 'User', 'learnpress' );
			$this->description = __( 'Send an email to the user when the order has been cancelled.', 'learnpress' );

			$this->default_subject = __( 'Your order on {{order_date}} has been cancelled', 'learnpress' );
			$this->default_heading = __( 'Your order has been cancelled', 'learnpress' );

			parent::__construct();
		}
	}

	return new LP_Email_Cancelled_Order_User();
}


```
