← All changes
|
inc/emails/admin/class-lp-email-cancelled-order-admin.php
+36
-36
4.3.8
→
4.4.9
View file →
| @@ -1,36 +1,36 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -/** | |
| 4 | - * Class LP_Email_Cancelled_Order_Admin | |
| 5 | - * | |
| 6 | - * @author ThimPress | |
| 7 | - * @package LearnPress/Classes | |
| 8 | - * @version 3.0.0 | |
| 9 | - * @editor tungnx | |
| 10 | - * @modify 4.1.3 | |
| 11 | - */ | |
| 12 | - | |
| 13 | -/** | |
| 14 | - * Prevent loading this file directly | |
| 15 | - */ | |
| 16 | -defined( 'ABSPATH' ) || exit(); | |
| 17 | - | |
| 18 | -if ( ! class_exists( 'LP_Email_Cancelled_Order_Admin' ) ) { | |
| 19 | - class LP_Email_Cancelled_Order_Admin extends LP_Email_Type_Order_Admin { | |
| 20 | - /** | |
| 21 | - * LP_Email_Cancelled_Order_Admin constructor. | |
| 22 | - */ | |
| 23 | - public function __construct() { | |
| 24 | - $this->id = 'cancelled-order-admin'; | |
| 25 | - $this->title = __( 'Admin', 'learnpress' ); | |
| 26 | - $this->description = __( 'Send an email to admin when the order has been canceled.', 'learnpress' ); | |
| 27 | - $this->default_subject = __( 'The order placed on {{order_date}} has been cancelled', 'learnpress' ); | |
| 28 | - $this->default_heading = __( 'The user order has been cancelled', 'learnpress' ); | |
| 29 | - $this->recipient = LP_Settings::instance()->get( 'emails_' . $this->id . '.recipients', $this->_get_admin_email() ); | |
| 30 | - | |
| 31 | - parent::__construct(); | |
| 32 | - } | |
| 33 | - } | |
| 34 | - | |
| 35 | - return new LP_Email_Cancelled_Order_Admin(); | |
| 36 | -} | |
| 1 | +<?php | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * Class LP_Email_Cancelled_Order_Admin | |
| 5 | + * | |
| 6 | + * @author ThimPress | |
| 7 | + * @package LearnPress/Classes | |
| 8 | + * @version 3.0.0 | |
| 9 | + * @editor tungnx | |
| 10 | + * @modify 4.1.3 | |
| 11 | + */ | |
| 12 | + | |
| 13 | +/** | |
| 14 | + * Prevent loading this file directly | |
| 15 | + */ | |
| 16 | +defined( 'ABSPATH' ) || exit(); | |
| 17 | + | |
| 18 | +if ( ! class_exists( 'LP_Email_Cancelled_Order_Admin' ) ) { | |
| 19 | + class LP_Email_Cancelled_Order_Admin extends LP_Email_Type_Order_Admin { | |
| 20 | + /** | |
| 21 | + * LP_Email_Cancelled_Order_Admin constructor. | |
| 22 | + */ | |
| 23 | + public function __construct() { | |
| 24 | + $this->id = 'cancelled-order-admin'; | |
| 25 | + $this->title = __( 'Admin', 'learnpress' ); | |
| 26 | + $this->description = __( 'Send an email to admin when the order has been canceled.', 'learnpress' ); | |
| 27 | + $this->default_subject = __( 'The order placed on {{order_date}} has been cancelled', 'learnpress' ); | |
| 28 | + $this->default_heading = __( 'The user order has been cancelled', 'learnpress' ); | |
| 29 | + $this->recipient = LP_Settings::instance()->get( 'emails_' . $this->id . '.recipients', $this->_get_admin_email() ); | |
| 30 | + | |
| 31 | + parent::__construct(); | |
| 32 | + } | |
| 33 | + } | |
| 34 | + | |
| 35 | + return new LP_Email_Cancelled_Order_Admin(); | |
| 36 | +} | |