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-refunded-order-admin.php

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

30 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 /**
4 * Class LP_Email_Refunded_Order_Admin
5 *
6 * @package LearnPress/Classes
7 */
8 defined( 'ABSPATH' ) || exit();
9
10 if ( ! class_exists( 'LP_Email_Refunded_Order_Admin' ) ) {
11 class LP_Email_Refunded_Order_Admin extends LP_Email_Type_Order_Admin {
12 /**
13 * LP_Email_Refunded_Order_Admin constructor.
14 */
15 public function __construct() {
16 $this->id = 'refunded-order-admin';
17 $this->title = __( 'Admin', 'learnpress' );
18 $this->description = __( 'Send an email to admin when the order has been refunded.', 'learnpress' );
19 $this->default_subject = __( 'The order placed on {{order_date}} has been refunded', 'learnpress' );
20 $this->default_heading = __( 'The user order has been refunded', 'learnpress' );
21 $this->recipient = LP_Settings::instance()->get( 'emails_' . $this->id . '.recipients', $this->_get_admin_email() );
22 $this->template_html = 'emails/refund/refunded-order-admin.php';
23
24 parent::__construct();
25 }
26 }
27
28 return new LP_Email_Refunded_Order_Admin();
29 }
30