Skip to content

Instantly share code, notes, and snippets.

@jsonUK
Created September 3, 2017 16:03
Show Gist options
  • Save jsonUK/cb4c3190a56fae63b8b04081e98804d3 to your computer and use it in GitHub Desktop.
Save jsonUK/cb4c3190a56fae63b8b04081e98804d3 to your computer and use it in GitHub Desktop.
Change WooCommerce input fields to have Bootstrap form-control class
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