woocommerce-subscriptions/templates/emails/plain/reactivated-subscription.php
fei-source 432ebde60c Update to v8.5.0
Source: GrootMade/Festinger Vault
2026-03-15 08:31:12 +08:00

65 lines
3 KiB
PHP

<?php
/**
* Reactivated Subscription email (plain text).
*
* @version 8.4.0
*
* @var string $additional_content Additional content added by the user.
* @var WC_Email $email Active instance of the email class associated with this template.
* @var string $email_heading The email heading.
* @var bool $plain_text True if the email is being sent in plain text, false if HTML.
* @var bool $sent_to_admin True if the email was sent to the admin, false if to the customer.
* @var WC_Subscription $subscription The subscription object.
*/
defined( 'ABSPATH' ) || exit;
echo wp_kses_post( $email_heading ) . "\n\n";
// translators: $1: customer's billing first name and last name
printf( esc_html__( 'A subscription belonging to %1$s has been reactivated. Their subscription\'s details are as follows:', 'woocommerce-subscriptions' ), esc_html( $subscription->get_formatted_billing_full_name() ) );
echo "\n\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
/**
* @hooked WC_Subscriptions_Email::order_details() Shows the order details table.
* @since 1.0.0 - Migrated from WooCommerce Subscriptions v2.1.0
*/
do_action( 'woocommerce_subscriptions_email_order_details', $subscription, $sent_to_admin, $plain_text, $email );
echo "\n----------\n\n";
$last_order_time_created = $subscription->get_time( 'last_order_date_created', 'site' );
if ( ! empty( $last_order_time_created ) ) {
// translators: placeholder is last time subscription was paid
echo esc_html( sprintf( __( 'Last Order Date: %s', 'woocommerce-subscriptions' ), date_i18n( wc_date_format(), $last_order_time_created ) ) ) . "\n";
}
$end_time = $subscription->get_time( 'end', 'site' );
if ( ! empty( $end_time ) ) {
// translators: placeholder is localised date string
echo esc_html( sprintf( __( 'End of Prepaid Term: %s', 'woocommerce-subscriptions' ), date_i18n( wc_date_format(), $end_time ) ) ) . "\n";
}
do_action( 'woocommerce_email_order_meta', $subscription, $sent_to_admin, $plain_text, $email );
// translators: %s: subscription URL
echo "\n" . esc_html( sprintf( _x( 'View Subscription: %s', 'in plain emails for subscription information', 'woocommerce-subscriptions' ), esc_url( wcs_get_edit_post_link( $subscription->get_id() ) ) ) ) . "\n";
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
do_action( 'woocommerce_email_customer_details', $subscription, $sent_to_admin, $plain_text, $email );
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
/**
* Show user-defined additional content - this is set in each email's settings.
*/
if ( $additional_content ) {
echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) );
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
}
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );