PluginProbe
Tiered Pricing Table for WooCommerce / 8.0.2
Tiered Pricing Table for WooCommerce v8.0.2
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
tier-pricing-table / src / Addons / NonLoggedInUsers / Wholesale / Emails / AdminNewApplicationEmail.php

AdminNewApplicationEmail.php in Tiered Pricing Table for WooCommerce 8.0.2, at src/Addons/NonLoggedInUsers/Wholesale/Emails/AdminNewApplicationEmail.php

34 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace TierPricingTable\Addons\NonLoggedInUsers\Wholesale\Emails;
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 class AdminNewApplicationEmail extends AbstractApplicationEmail {
8
9 public function __construct() {
10 $this->id = 'tpt_wholesale_admin_new_application';
11 $this->title = __( 'Wholesale application (admin)', 'tier-pricing-table' );
12 $this->description = __( 'Sent to the store owner when a customer applies for a wholesale account.', 'tier-pricing-table' );
13 $this->template_html = 'emails/admin-new-application.php';
14 $this->template_plain = 'emails/plain/admin-new-application.php';
15 $this->customer_email = false;
16
17 parent::__construct();
18
19 $this->recipient = $this->get_option( 'recipient', get_option( 'admin_email' ) );
20 }
21
22 protected function getTriggerAction(): string {
23 return 'tiered_pricing_table/wholesale/application_submitted';
24 }
25
26 public function get_default_subject() {
27 return __( '[{site_title}] New wholesale application from {applicant_name}', 'tier-pricing-table' );
28 }
29
30 public function get_default_heading() {
31 return __( 'New wholesale application', 'tier-pricing-table' );
32 }
33 }
34