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