Last active
April 28, 2026 13:07
-
-
Save xlplugins/2e488b35e94f063e2d139d0b62fe93a5 to your computer and use it in GitHub Desktop.
Hide stripe card terms message below credit card
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
| add_filter( 'fkwcs_stripe_payment_element_data', function( $data, $gateway ) { | |
| if ( ! is_array( $data ) || ! isset( $data['element_options'] ) ) { | |
| return $data; | |
| } | |
| $data['element_options']['terms'] = array( | |
| 'card' => 'never', | |
| ); | |
| return $data; | |
| }, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment