This field type renders an email field.
Parameters
Parameters are inherited from the Text field type, but the values are restricted to emails only.
Example
The code below renders a required email field with the custom_field
name, "Custom field" label and "Custom text" placeholder.
echo ( new HivePress\Fields\Email(
[
'name' => 'custom_field',
'label' => 'Custom field',
'placeholder' => 'Custom text',
'required' => true,
]
) )->render();
Last updated
Was this helpful?