Created
February 25, 2018 15:22
-
-
Save dhirenpatel22/9f8916ba3c40bf96b41f6c21dfa0d7e6 to your computer and use it in GitHub Desktop.
Add Bootstrap Class to WooCommerce Checkout Fields
This file contains 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 /** | |
* Add Bootstrap Class to WooCommerce Checkout Fields | |
* @author Dhiren Patel | |
* @link http://www.dhirenpatel.me/wc-checkout-bootstrap/ | |
*/ | |
add_filter('woocommerce_form_field_args', 'wc_form_field_args',10,3); | |
function wc_form_field_args($args, $key, $value) { | |
$args['input_class'] = array( 'form-control' ); | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment