PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.10
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.10
4.4.10 4.4.9.1 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 All 142 releases
← All changes | inc/emails/student/class-lp-email-completed-order-user.php +43 -43 4.3.9 → 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 +}