Merge pull request #407 from thenbrent/master

Adding a password form field to the woocommerce_form_field() function
This commit is contained in:
Mike Jolley 2011-12-21 17:56:14 -08:00
commit fd6470da9a
1 changed files with 8 additions and 0 deletions

View File

@ -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 :