Merge pull request #407 from thenbrent/master
Adding a password form field to the woocommerce_form_field() function
This commit is contained in:
commit
fd6470da9a
|
@ -618,6 +618,14 @@ if (!function_exists('woocommerce_form_field')) {
|
|||
<label for="'.$key.'" class="checkbox '.implode(' ', $args['label_class']).'">'.$args['label'].'</label>
|
||||
</p>'.$after;
|
||||
|
||||
break;
|
||||
case "password" :
|
||||
|
||||
$field = '<p class="form-row '.implode(' ', $args['class']).'" id="'.$key.'_field">
|
||||
<label for="'.$key.'" class="'.implode(' ', $args['label_class']).'">'.$args['label'].'</label>
|
||||
<input type="password" class="input-text" name="'.$key.'" id="'.$key.'" placeholder="'.$args['placeholder'].'" value="'. $value.'" />
|
||||
</p>'.$after;
|
||||
|
||||
break;
|
||||
default :
|
||||
|
||||
|
|
Loading…
Reference in New Issue