PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
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
← 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 +}