Created
September 3, 2017 16:03
-
-
Save jsonUK/cb4c3190a56fae63b8b04081e98804d3 to your computer and use it in GitHub Desktop.
Change WooCommerce input fields to have Bootstrap form-control class
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('woocommerce_form_field_args', 'addBootstrapInputClass', 10, 3); | |
function addBootstrapInputClass($args, $key, $value) { | |
$args['input_class'] = ['form-control']; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment