PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.2.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.2.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
subscription / templates / emails / plains / subscription-cancelled-plain.php

subscription-cancelled-plain.php in Subscriptions for WooCommerce with Stripe Recurring Payments 2.2.0, at templates/emails/plains/subscription-cancelled-plain.php

47 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Mail template for Subscription cancelled (Customer).
4 *
5 * @var string $email_heading Email Heading.
6 * @var int $id Subscription id.
7 * @var string $product_name Product name.
8 * @var int $qty Subscription Quantity.
9 * @var string $amount Subscription Amount with price format.
10 * @var string $view_subscription_url Subscription view URL.
11 *
12 * @package SpringDevs\Subscription
13 */
14
15 // Exit if accessed directly.
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit;
18 }
19
20 echo esc_html( '= ' . $email_heading . " =\n\n" );
21
22 // translators: <b></b> tag.
23 $opening_paragraph = __( 'Your subscription is %1$s Cancelled! %2$s', 'subscription' );
24
25 echo wp_kses_post( sprintf( $opening_paragraph, '<b>', '</b>' ) . "\n\n" );
26
27 echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
28
29 // translators: Subscription id.
30 echo esc_html( sprintf( __( 'Subscription Id: %s', 'subscription' ), $id ) . "\n" );
31
32 // translators: Product name.
33 echo esc_html( sprintf( __( 'Product: %s', 'subscription' ), $product_name ) . "\n" );
34
35 // translators: Subscription quantity.
36 echo esc_html( sprintf( __( 'Qty: %s', 'subscription' ), $qty ) . "\n" );
37
38 // translators: Subscription amount.
39 echo wp_kses_post( sprintf( __( 'Amount: %s', 'subscription' ), $amount ) . "\n" );
40
41
42 echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
43
44 echo esc_html__( 'View subscription:', 'subscription' ) . ' ' . esc_url_raw( $view_subscription_url ) . "\n\n";
45
46 echo esc_html( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
47