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' );