PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.1
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.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 4.1.7.3.1 4.1.7.3.2 All 140 releases
learnpress / inc / emails / guest / class-lp-email-completed-order-guest.php

class-lp-email-completed-order-guest.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.1, at inc/emails/guest/class-lp-email-completed-order-guest.php

41 lines 1020 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class LP_Email_Completed_Order_Guest
4 *
5 * Send email to customer in case they checkout as a guest.
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_Guest' ) ) {
18
19 /**
20 * Class LP_Email_Completed_Order_Guest
21 */
22 class LP_Email_Completed_Order_Guest extends LP_Email_Type_Order_Guest {
23
24 /**
25 * LP_Email_Completed_Order_Guest constructor.
26 */
27 public function __construct() {
28 $this->id = 'completed-order-guest';
29 $this->title = __( 'Guest', 'learnpress' );
30 $this->description = __( 'Send an email to the user who has bought the course as a guest.', 'learnpress' );
31
32 $this->default_subject = __( 'Your order on {{order_date}} has completed', 'learnpress' );
33 $this->default_heading = __( 'Your order has completed', 'learnpress' );
34
35 parent::__construct();
36 }
37 }
38
39 return new LP_Email_Completed_Order_Guest();
40 }
41