PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.3.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.3.0
2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 All 65 releases
← All changes | includes/Illuminate/Emails/SubscriptionExpired.php +0 -8 trunk → 2.3.0 View file →
@@ -1,9 +1,8 @@
1 1 <?php
2 2
3 3 namespace SpringDevs\Subscription\Illuminate\Emails;
4 4
5 -use SpringDevs\Subscription\Illuminate\Multilingual;
6 5 use SpringDevs\Subscription\Traits\Email;
7 6 use WC_Email;
8 7
9 8 /**
@@ -65,18 +64,11 @@
65 64 }
66 65 $this->placeholders['{subscription_id}'] = $subscription_id;
67 66 $this->subscription_id = $subscription_id;
68 67
69 - // In the customer's language, not the site's or whoever triggered it.
70 - $switched = Multilingual::switch_email_language( $this, $subscription_id );
71 -
72 68 $this->set_table_data();
73 69
74 70 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );
75 -
76 - if ( $switched ) {
77 - Multilingual::restore_email_language( $this );
78 - }
79 71 }
80 72
81 73 /**
82 74 * Initialize form fields for settings.