← All changes
|
inc/emails/student/class-lp-email-completed-order-user.php
+43
-43
4.3.8
→
4.4.10
View file →
| @@ -1,43 +1,43 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Class LP_Email_Completed_Order_User | |
| 4 | - * | |
| 5 | - * Send email to customer in case they checkout after login. | |
| 6 | - * | |
| 7 | - * @author ThimPress | |
| 8 | - * @package LearnPress/Classes | |
| 9 | - * @version 3.0.0 | |
| 10 | - */ | |
| 11 | - | |
| 12 | -/** | |
| 13 | - * Prevent loading this file directly | |
| 14 | - */ | |
| 15 | -defined( 'ABSPATH' ) || exit(); | |
| 16 | - | |
| 17 | -if ( ! class_exists( 'LP_Email_Completed_Order_User' ) ) { | |
| 18 | - | |
| 19 | - /** | |
| 20 | - * Class LP_Email_Completed_Order_User | |
| 21 | - */ | |
| 22 | - class LP_Email_Completed_Order_User extends LP_Email_Type_Order_Student { | |
| 23 | - | |
| 24 | - /** | |
| 25 | - * LP_Email_Completed_Order_User constructor. | |
| 26 | - */ | |
| 27 | - public function __construct() { | |
| 28 | - $this->id = 'completed-order-user'; | |
| 29 | - $this->title = __( 'User', 'learnpress' ); | |
| 30 | - $this->description = __( | |
| 31 | - 'Send an email to the user who has bought the course when the order is completed.', | |
| 32 | - 'learnpress' | |
| 33 | - ); | |
| 34 | - | |
| 35 | - $this->default_subject = __( 'Your order on {{order_date}} has completed', 'learnpress' ); | |
| 36 | - $this->default_heading = __( 'Your order has completed', 'learnpress' ); | |
| 37 | - | |
| 38 | - parent::__construct(); | |
| 39 | - } | |
| 40 | - } | |
| 41 | - | |
| 42 | - return new LP_Email_Completed_Order_User(); | |
| 43 | -} | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Class LP_Email_Completed_Order_User | |
| 4 | + * | |
| 5 | + * Send email to customer in case they checkout after login. | |
| 6 | + * | |
| 7 | + * @author ThimPress | |
| 8 | + * @package LearnPress/Classes | |
| 9 | + * @version 3.0.0 | |
| 10 | + */ | |
| 11 | + | |
| 12 | +/** | |
| 13 | + * Prevent loading this file directly | |
| 14 | + */ | |
| 15 | +defined( 'ABSPATH' ) || exit(); | |
| 16 | + | |
| 17 | +if ( ! class_exists( 'LP_Email_Completed_Order_User' ) ) { | |
| 18 | + | |
| 19 | + /** | |
| 20 | + * Class LP_Email_Completed_Order_User | |
| 21 | + */ | |
| 22 | + class LP_Email_Completed_Order_User extends LP_Email_Type_Order_Student { | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * LP_Email_Completed_Order_User constructor. | |
| 26 | + */ | |
| 27 | + public function __construct() { | |
| 28 | + $this->id = 'completed-order-user'; | |
| 29 | + $this->title = __( 'User', 'learnpress' ); | |
| 30 | + $this->description = __( | |
| 31 | + 'Send an email to the user who has bought the course when the order is completed.', | |
| 32 | + 'learnpress' | |
| 33 | + ); | |
| 34 | + | |
| 35 | + $this->default_subject = __( 'Your order on {{order_date}} has completed', 'learnpress' ); | |
| 36 | + $this->default_heading = __( 'Your order has completed', 'learnpress' ); | |
| 37 | + | |
| 38 | + parent::__construct(); | |
| 39 | + } | |
| 40 | + } | |
| 41 | + | |
| 42 | + return new LP_Email_Completed_Order_User(); | |
| 43 | +} | |