From ab3fe5b52fbc3d45e8d005e57f0485c6b83079f3 Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Wed, 17 Jun 2020 14:02:52 +0200 Subject: [PATCH] Fix WooCommerce checkbox input Problem: Calling `woocommerce_form_field()` for input type `checkbox` results in a hidden checkbox. Fix: Adjust the `understrap_wc_form_field_args` filter to make `woocommerce_form_field()` render valid Bootstrap markup. --- inc/woocommerce.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/inc/woocommerce.php b/inc/woocommerce.php index b09c707e..8831f77b 100644 --- a/inc/woocommerce.php +++ b/inc/woocommerce.php @@ -122,10 +122,13 @@ if ( ! function_exists( 'understrap_wc_form_field_args' ) ) { $args['input_class'] = array( 'form-control' ); break; case 'checkbox': - // Add a class to the form input's