From 22466f07a111097b45d10933e2cbf38132dc1b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Wed, 7 Jun 2023 16:03:24 +0200 Subject: [PATCH] Add label for subscription ID merge tag. --- src/Admin.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Admin.php b/src/Admin.php index f840021..32f94b8 100644 --- a/src/Admin.php +++ b/src/Admin.php @@ -25,7 +25,7 @@ class Admin { /** * Bootstrap. - * + * * @return void */ public static function bootstrap() { @@ -44,7 +44,7 @@ public static function bootstrap() { /** * Admin initialize. - * + * * @return void */ public static function admin_init() { @@ -168,6 +168,11 @@ public static function custom_merge_tags( $merge_tags ) { ]; // Subscription. + $merge_tags[] = [ + 'label' => __( 'Pronamic Subscription ID', 'pronamic_ideal' ), + 'tag' => '{pronamic_subscription_id}', + ]; + $merge_tags[] = [ 'label' => __( 'Pronamic Subscription Payment ID', 'pronamic_ideal' ), 'tag' => '{pronamic_subscription_payment_id}',