Adds email return format options to Advanced Custom Fields, including a clickable mailto link.
- Email address (default): returns the stored email address as plain text.
- Click to Mail: returns an escaped HTML mailto link displaying the email address.
Works with get_field() and get_sub_field(), including Advanced Custom Fields repeater subfields. Saved field values are unchanged.
Requires Advanced Custom Fields or Advanced Custom Fields PRO to be active.
When using Click to Mail in templates, output the returned HTML with wp_kses_post() instead of esc_html(). For plain email addresses, use esc_html().