From 376e04bb040b22eebff3c23d93ce0293fa8d0e4a Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Wed, 7 Jan 2026 15:00:27 -0400 Subject: [PATCH 1/2] Use updated key names --- square/helpers/FrmSquareLiteAppHelper.php | 8 ++++---- stripe/helpers/FrmStrpLiteAppHelper.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/square/helpers/FrmSquareLiteAppHelper.php b/square/helpers/FrmSquareLiteAppHelper.php index 220528aea2..e5eb4938f7 100644 --- a/square/helpers/FrmSquareLiteAppHelper.php +++ b/square/helpers/FrmSquareLiteAppHelper.php @@ -54,12 +54,12 @@ public static function active_mode() { /** * Add education about Stripe fees. * - * @param string $medium Medium identifier for the tip (for example 'tip'). + * @param string $content UTM Content for the admin upgrade link. * @param array|false|string $gateway Gateway or list of gateways this applies to. * * @return void */ - public static function fee_education( $medium = 'tip', $gateway = false ) { + public static function fee_education( $content = 'tip', $gateway = false ) { $license_type = FrmAddonsController::license_type(); if ( in_array( $license_type, array( 'elite', 'business' ), true ) ) { @@ -75,8 +75,8 @@ public static function fee_education( $medium = 'tip', $gateway = false ) { FrmTipsHelper::show_tip( array( 'link' => array( - 'content' => 'square-fee', - 'medium' => $medium, + 'campaign' => 'square-fee', + 'content' => $content, ), 'tip' => 'Pay as you go pricing: 3% fee per-transaction + Square fees.', 'call' => __( 'Upgrade to save on fees.', 'formidable' ), diff --git a/stripe/helpers/FrmStrpLiteAppHelper.php b/stripe/helpers/FrmStrpLiteAppHelper.php index ae0d268ae6..6063e790b2 100644 --- a/stripe/helpers/FrmStrpLiteAppHelper.php +++ b/stripe/helpers/FrmStrpLiteAppHelper.php @@ -98,12 +98,12 @@ public static function active_mode() { /** * Add education about Stripe fees. * - * @param string $medium Medium identifier for the tip (for example 'tip'). + * @param string $content UTM Content for the admin upgrade link. * @param array|false|string $gateway Gateway or list of gateways this applies to. * * @return void */ - public static function fee_education( $medium = 'tip', $gateway = false ) { + public static function fee_education( $content = 'tip', $gateway = false ) { $license_type = FrmAddonsController::license_type(); if ( in_array( $license_type, array( 'elite', 'business' ), true ) ) { @@ -119,8 +119,8 @@ public static function fee_education( $medium = 'tip', $gateway = false ) { FrmTipsHelper::show_tip( array( 'link' => array( - 'content' => 'stripe-fee', - 'medium' => $medium, + 'campaign' => 'stripe-fee', + 'content' => $content, ), 'tip' => 'Pay as you go pricing: 3% fee per-transaction + Stripe fees.', 'call' => __( 'Upgrade to save on fees.', 'formidable' ), From ea4468d59d49154032eefc99be8a516b8e2b79a3 Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Wed, 7 Jan 2026 15:01:04 -0400 Subject: [PATCH 2/2] Use updated key names --- classes/helpers/FrmTipsHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/helpers/FrmTipsHelper.php b/classes/helpers/FrmTipsHelper.php index adb431534c..cf8a55bf60 100644 --- a/classes/helpers/FrmTipsHelper.php +++ b/classes/helpers/FrmTipsHelper.php @@ -48,8 +48,8 @@ public static function show_tip( $tip, $html = '' ) { ); $tip = array_merge( $defaults, $tip ); - if ( isset( $tip['link'] ) && ! isset( $tip['link']['medium'] ) ) { - $tip['link']['medium'] = 'tip'; + if ( isset( $tip['link'] ) && ! isset( $tip['link']['medium'] ) && ! isset( $tip['link']['campaign'] ) ) { + $tip['link']['campaign'] = 'tip'; } if ( 'p' === $html ) {