Created
July 31, 2024 13:48
-
-
Save kimcoleman/ab5282830d18252ec39b9dab124d6e7a to your computer and use it in GitHub Desktop.
Upcoming filter in PMPro v 3.1.2 or higher (not currently released) to adjust the appearance of Stripe Card Element styles.
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 | |
/** | |
* Upcoming filter in PMPro v 3.1.2 or higher (not currently released) to adjust the appearance of Stripe Card Element styles. | |
* Refer to this Stripe documentation for available properties: https://docs.stripe.com/js/appendix/style | |
*/ | |
function my_custom_pmpro_stripe_card_element_style($styles) { | |
$custom_styles = array( | |
'base' => array( | |
'color' => '#FFFFFF', | |
'::placeholder' => array( | |
'color' => '#FFFFFF' | |
) | |
) | |
); | |
return array_merge($styles, $custom_styles); | |
} | |
add_filter('pmpro_stripe_card_element_style', 'my_custom_pmpro_stripe_card_element_style'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment