Comment on page
Password
This field type renders a password field.
The code below renders a required password field with the
custom_field
name, "Custom field" label and "Custom text" placeholder. The minimum password length is 10 characters.echo ( new HivePress\Fields\Password(
[
'name' => 'custom_field',
'label' => 'Custom field',
'placeholder' => 'Custom text',
'min_length' => 10,
'required' => true,
]
) )->render();
Last modified 1yr ago