| 1 |
<?php |
| 2 |
/** |
| 3 |
* LP_Email_Refunded_Order_User. |
| 4 |
* |
| 5 |
* @package Learnpress/Classes |
| 6 |
*/ |
| 7 |
defined( 'ABSPATH' ) || exit(); |
| 8 |
|
| 9 |
if ( ! class_exists( 'LP_Email_Refunded_Order_User' ) ) { |
| 10 |
class LP_Email_Refunded_Order_User extends LP_Email_Type_Order_Student { |
| 11 |
/** |
| 12 |
* LP_Email_Refunded_Order_User constructor. |
| 13 |
*/ |
| 14 |
public function __construct() { |
| 15 |
$this->id = 'refunded-order-user'; |
| 16 |
$this->title = __( 'User', 'learnpress' ); |
| 17 |
$this->description = __( 'Send an email to the user when the order has been refunded.', 'learnpress' ); |
| 18 |
|
| 19 |
$this->default_subject = __( 'Your order on {{order_date}} has been refunded', 'learnpress' ); |
| 20 |
$this->default_heading = __( 'Your order has been refunded', 'learnpress' ); |
| 21 |
$this->template_html = 'emails/refund/refunded-order-user.php'; |
| 22 |
|
| 23 |
parent::__construct(); |
| 24 |
} |
| 25 |
} |
| 26 |
|
| 27 |
return new LP_Email_Refunded_Order_User(); |
| 28 |
} |
| 29 |
|