| 1 |
<?php |
| 2 |
|
| 3 |
namespace Texty\Notifications; |
| 4 |
|
| 5 |
class OrderProcessingAdmin extends OrderBase { |
| 6 |
|
| 7 |
/** |
| 8 |
* Initialize |
| 9 |
*/ |
| 10 |
public function __construct() { |
| 11 |
$this->title = __( 'Admin - When Order Status is Processing', 'texty' ); |
| 12 |
$this->id = 'order_admin_processing'; |
| 13 |
$this->group = 'wc'; |
| 14 |
$this->default_recipients = [ 'administrator' ]; |
| 15 |
|
| 16 |
$this->default = <<<'EOD' |
| 17 |
New order received #{order_id}, paid via {payment_method}. |
| 18 |
|
| 19 |
Customer: {billing_name} ({billing_email}) |
| 20 |
Status: {status} |
| 21 |
Order Total: {order_total} |
| 22 |
EOD; |
| 23 |
} |
| 24 |
} |
| 25 |
|