PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
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 4.2.0 All 139 releases
learnpress / inc / emails / admin / class-lp-email-new-order-admin.php

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

41 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Email for admin when has new order.
4 *
5 * @author ThimPress
6 * @package LearnPress/Classes
7 * @version 3.0.1
8 * @editor tungnx
9 * @modify 4.1.3
10 */
11
12 /**
13 * Prevent loading this file directly
14 */
15 defined( 'ABSPATH' ) || exit();
16
17 if ( ! class_exists( 'LP_Email_New_Order_Admin' ) ) {
18 class LP_Email_New_Order_Admin extends LP_Email_Type_Order_Admin {
19
20 /**
21 * LP_Email_New_Order_Admin constructor.
22 */
23 public function __construct() {
24 $this->id = 'new-order-admin';
25 $this->title = __( 'Admin', 'learnpress' );
26 $this->description = __( 'Notify admin when a new order is placed.', 'learnpress' );
27
28 $this->default_subject = __( 'New order placed on {{order_date}}', 'learnpress' );
29 $this->default_heading = __( 'New user order', 'learnpress' );
30
31 $this->recipients = get_option( 'admin_email' );
32 $this->recipient = LP_Settings::instance()->get( 'emails_' . $this->id . '.recipients', $this->_get_admin_email() );
33
34 parent::__construct();
35 }
36 }
37
38 return new LP_Email_New_Order_Admin();
39 }
40
41