PluginProbe
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More / 2.4.0
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More v2.4.0
2.4.1 2.4.0 2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.2 2.2.1 2.2.0 2.1.2 2.1.1 trunk 0.0.1 0.0.2 0.0.3 0.0.4 0.0.5 0.0.6 0.0.7 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 All 68 releases
better-payment / templates / emails / plain / bp-subscription-completed.php

bp-subscription-completed.php in Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More 2.4.0, at templates/emails/plain/bp-subscription-completed.php

60 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Customer "subscription completed" email (plain text) — the renewal limit
4 * was reached and no further payments will be charged.
5 *
6 * Override by copying it to yourtheme/better-payment/emails/plain/bp-subscription-completed.php.
7 *
8 * @package Better_Payment\Lite
9 * @since 2.4.0
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit;
14 }
15
16 echo '= ' . esc_html( wp_strip_all_tags( $email_heading ) ) . " =\n\n";
17
18 /* translators: %s: customer first name */
19 printf( esc_html__( 'Hi %s,', 'better-payment' ), esc_html( $order->get_billing_first_name() ) );
20 echo "\n\n";
21
22 printf(
23 /* translators: 1: order number, 2: site title */
24 esc_html__( 'Your subscription (order %1$s) on %2$s is complete — it reached its planned number of renewals, and no further payments will be charged.', 'better-payment' ),
25 esc_html( '#' . $order->get_order_number() ),
26 esc_html( wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) )
27 );
28 echo "\n\n";
29
30 if ( ! empty( $item_names ) ) {
31 printf(
32 /* translators: %s: comma-separated subscription product names */
33 esc_html__( 'Subscription: %s', 'better-payment' ),
34 esc_html( implode( ', ', $item_names ) )
35 );
36 echo "\n";
37
38 if ( '' !== $schedule ) {
39 printf(
40 /* translators: %s: billing schedule, e.g. "month" or "every 3 months" */
41 esc_html__( 'Billing schedule: %s', 'better-payment' ),
42 esc_html( $schedule )
43 );
44 echo "\n";
45 }
46
47 echo "\n";
48 }
49
50 if ( '' !== $view_url ) {
51 esc_html_e( 'View your subscription:', 'better-payment' );
52 echo ' ' . esc_url( $view_url ) . "\n\n";
53 }
54
55 if ( $additional_content ) {
56 echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ) . "\n\n";
57 }
58
59 echo esc_html( wp_strip_all_tags( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ) );
60