Skip to content

Instantly share code, notes, and snippets.

@wpmudev-sls
Last active June 2, 2025 12:02
Show Gist options
  • Save wpmudev-sls/a12f342b99176c8b6861fc029e02b7b9 to your computer and use it in GitHub Desktop.
Save wpmudev-sls/a12f342b99176c8b6861fc029e02b7b9 to your computer and use it in GitHub Desktop.
[Forminator Pro] - Hide stripe payment terms
<?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