From f92f5bfe810132e60f3da924b14f2c51b5e9f78c Mon Sep 17 00:00:00 2001 From: Rob Davarnia Date: Tue, 12 Nov 2013 13:14:14 -0800 Subject: [PATCH] Ability to add custom input classes --- includes/wc-template-functions.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index 9b4d2e6e417..0e71f6698d7 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -1590,6 +1590,7 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) { 'required' => false, 'class' => array(), 'label_class' => array(), + 'input_class' => array(), 'return' => false, 'options' => array(), 'custom_attributes' => array(), @@ -1714,7 +1715,7 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) { if ( $args['label'] ) $field .= ''; - $field .= ''; + $field .= ''; $field .= '

' . $after; } @@ -1727,7 +1728,7 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) { if ( $args['label'] ) $field .= ''; - $field .= ' + $field .= '

' . $after; break; @@ -1746,7 +1747,7 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) { if ( $args['label'] ) $field .= ''; - $field .= ' + $field .= '

' . $after; break; @@ -1757,7 +1758,7 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) { if ( $args['label'] ) $field .= ''; - $field .= ' + $field .= '

' . $after; break;