Styling CC Form W/ Filter?

[ad_1]

The filter I found in an older thread does not appear to be working to style the “updated checkout experience” form:

add_filter('wc_stripe_get_element_options', function($options, $gateway){
    if($gateway->id === 'stripe_cc'){
        $options['appearance']['variables'] = array('colorText' => '#fff');
    }
    return $options;
}, 10, 2);

I’d like to be able to edit variables and rules per the docs, but I’m not sure anything has changed with the new form where this old snippet might not be applicable anymore. If someone can please provide a snippet filter for variables and rules it would be appreciated, thanks.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer