Last active
June 2, 2025 12:02
-
-
Save wpmudev-sls/a12f342b99176c8b6861fc029e02b7b9 to your computer and use it in GitHub Desktop.
[Forminator Pro] - Hide stripe payment terms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: [Forminator Pro] Hide stripe payment terms | |
* Description: Hides stripe card element's terms. | |
* Author: Prashant @ WPMUDEV | |
* Task: SLS-7079 | |
* Author URI: https://premium.wpmudev.org | |
* License: GPLv2 or later | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
/** | |
* Remove Terms. | |
* | |
* @param array $payment_options Payment Options. | |
*/ | |
function wpmudev_hide_stripe_payment_terms( $payment_options ) { | |
$payment_options['terms'] = array( | |
'card' => 'never', | |
); | |
return $payment_options; | |
} | |
add_filter( 'forminator_field_stripe_ocs_elements_options', 'wpmudev_hide_stripe_payment_terms', 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment