| 1 |
<?php |
| 2 |
/** |
| 3 |
* Email for instructor 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_Instructor' ) ) { |
| 18 |
class LP_Email_New_Order_Instructor extends LP_Email_Type_Order_Instructor { |
| 19 |
public function __construct() { |
| 20 |
$this->id = 'new-order-instructor'; |
| 21 |
$this->title = __( 'Instructor', 'learnpress' ); |
| 22 |
$this->description = __( 'Notify instructors when a user enrolls in one of their courses.', 'learnpress' ); |
| 23 |
|
| 24 |
$this->default_subject = __( 'Instructor - New order placed on {{order_date}}', 'learnpress' ); |
| 25 |
$this->default_heading = __( 'New user order', 'learnpress' ); |
| 26 |
|
| 27 |
parent::__construct(); |
| 28 |
} |
| 29 |
} |
| 30 |
|
| 31 |
return new LP_Email_New_Order_Instructor(); |
| 32 |
} |
| 33 |
|
| 34 |
|