Controls
Email control is used to store a string value of email for the block. See examples below to use this control.
Control Settings
- Placeholder – the text will be visible when the value is empty
- Characters Limit – limit the maximum number of characters allowed. Leave blank to no limit
Usage
PHP Example
<p>
If you have any troubles, feel free to
<a href="mailto:<?php echo esc_attr( $attributes['control_name'] ); ?>">contact us</a>
</p>
Handlebars Example
<p>
If you have any troubles, feel free to
<a href="mailto:{{control_name}}">contact us</a>
</p>
Post Meta Example
<p>
If you have any troubles, feel free to
<a href="mailto:<?php echo esc_attr( get_lzb_meta( 'control_meta_name' ) ); ?>">contact us</a>
</p>