From e12678590dd10f5dc0489fcbf998e07ed6fb5cee Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Mon, 20 Jul 2026 13:03:19 -0300 Subject: [PATCH] Fix stripe layout setting appears twice when stripe addon is active --- stripe/views/action-settings/options.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stripe/views/action-settings/options.php b/stripe/views/action-settings/options.php index 5fd1c9c630..cb2d73ffea 100644 --- a/stripe/views/action-settings/options.php +++ b/stripe/views/action-settings/options.php @@ -3,6 +3,11 @@ die( 'You are not allowed to call this page directly.' ); } +if ( class_exists( 'FrmStrpHooksController', false ) ) { + // Prevent the Layout setting from appearing twice when the Stripe add-on is active. + return; +} + $show_layout_setting = in_array( 'stripe', (array) $form_action->post_content['gateway'], true ); $layout_setting_wrapper_atts = array( 'class' => 'frm_grid_container show_stripe frm-mb-xs' );