# subscription/trunk/templates/emails/plains/status-changed-admin-plain.php

Subscriptions for WooCommerce with Stripe Recurring Payments, version trunk. 50 lines.

- Page: https://pluginprobe.com/plugins/subscription/trunk/code/templates/emails/plains/status-changed-admin-plain.php
- Raw: https://pluginprobe.com/plugins/subscription/trunk/raw/templates/emails/plains/status-changed-admin-plain.php
- Modified: 2026-08-23T05:34:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/subscription/trunk/code/templates/emails/plains/status-changed-admin-plain.php#L10-L20`.

```php
<?php
/**
 * Mail template for Subscription status changed (Admin).
 *
 * @var string $email_heading Email Heading.
 * @var string $old_status Readable Old Status of Subscription.
 * @var string $new_status Readable New Status of Subscription.
 * @var int $id Subscription id.
 * @var string $product_name Product name.
 * @var int $qty Subscription Quantity.
 * @var string $amount Subscription Amount with price format.
 * @var string $admin_subscription_url Admin subscription details URL.
 * @var string $next_date Next payment date.
 *
 * @package SpringDevs\Subscription
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

echo esc_html( '= ' . $email_heading . " =\n\n" );

// translators: first is older status and last is newly updated status.
$opening_paragraph = __( 'Subscription status changed from %1$s to %2$s', 'subscription' );

echo esc_html( sprintf( $opening_paragraph, $old_status, $new_status ) . "\n\n" );

echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";

// translators: Subscription id.
echo esc_html( sprintf( __( 'Subscription Id: %s', 'subscription' ), $id ) . "\n" );

// translators: Product name.
echo esc_html( sprintf( __( 'Product: %s', 'subscription' ), $product_name ) . "\n" );

// translators: Subscription quantity.
echo esc_html( sprintf( __( 'Qty: %s', 'subscription' ), $qty ) . "\n" );

// translators: Subscription amount.
echo wp_kses_post( sprintf( __( 'Amount: %s', 'subscription' ), $amount ) . "\n" );


echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";

echo esc_html__( 'Open subscription:', 'subscription' ) . ' ' . esc_url_raw( $admin_subscription_url ) . "\n\n";

echo esc_html( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );

```
