This field type renders an email field.
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 modified 9mo ago