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 ) { 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' ),